Gets users from an AD server, tranform these and send to Lobbipad mass upload API.
The application looks for a configuration file named sync-ad.yaml
at the same directory level as the binary. This file is formatted in YAML syntax. It's possible to configure following options.
ad_address
ad_user
ad_password
ad_group
: this group will be syncedsync_api_token
: Lobbipad API token for your account
ad_telephone_field
ad_address: ldap://10.10.1.230
ad_user: Lobbipad@Yourdomain.local
ad_password: PasswordForTheReadOnlyUser
ad_group: LobbipadUsers
ad_telephone_field: telephone
sync_api_token: 995568a45c8cbf4e6849869c6e71926ee665f7f6ec50ebed4e648d4c0fd7d5e4
If the config is present, run the packaged application and check what entries are synced to your Lobbipad account. When run, the sync application will output a sync.log
text file with some information of every run. This will allow you to see if the sync was successful, how many entries were found etc.
Ensure the script runs every x time (fe. daily). Depending on your system use a task scheduler like CRON (Linux, macOS) or Task Scheduler (Windows).
- Run x time a day using CRON/Scheduled task on host machine On Windows this is Task Scheduler.
It's possible to add a --log
option when running the executable. So you can pass the path to your custom log.
./adsync-macos --log '~/location-to-log/test.txt'
./adsync-win --log 'c:\location-to-log\test.txt'
./adsync-linux --log '~/location-to-log/test.txt'