Automated LDAP import
The automated LDAP is now done via a command either via SSH or via the Emergency Shell.
The command to run is "run-import".
The format of the command is as follows:
- run-import <CM fqdn> <CM login fqdn> <Api Client Id> <Api Client Secret> <LDAPconfig Id>
e.g. run-import internalCM.vqcomms.com login.internalCM.vqcomms.com automated_importer import123 2
The API Client ID and API Client Secret needs to be created on VQCM-Admin.
To do this:
- Login to VQCM-Admin “[FQDN]:1234”
- Browse to Manage > Authentication Clients
- Create a Client ID and Client Secret and click “Add Client”
- Copy these same details into API Client ID and API Client Secret respectively
Finally, you will need to get the LDAP Config ID.
To do this:
-
Login to VQ Conference Manager, and browse to your LDAP configurations:
- The highlighted number will be the LDAP Config ID
- Running the command will start an LDAP import
- Once you are happy that the command is correct, and that the correct import is being ran, you can add the command to your Crontab to automate running the command
To do this, you need to do “crontab -e” to edit the cron file. If you’re not comfortable editing files using linux editors, contact support@vqcomms.com and we’ll hand-hold you through the process
-
Once you are in the file, you will need to specify how often you want the task to run, using the following schema:
- Example:
- “At 04:05 on Sunday.”
- 5 4 * * 0 run-import Examplecm.domain.com login.Examplecm.domain.com automated_importer import123
- “At 04:00 on every day-of-month.”
- 0 4 * * * run-import Examplecm.domain.com login.Examplecm.domain.com automated_importer import123
- “At 03:00 on Saturday and Sunday.”
- 0 3 * * 6,0 run-import Examplecm.domain.com login.Examplecm.domain.com automated_importer import123
- “At 04:05 on Sunday.”
Editing Crontab
For example:
Line to enter into crontab is “At 04:00AM Every Sunday”
To use this editor:
- Example:
- Press I to enter insert mode
- From here, you can type in the line shown in the screenshot above
- Once you have finished typing, press escape to exit insert mode
- Now type :wq (write and quit) to save the file, and exit the editor. If you wanted to quit the edit and not save the file, type :q!
You can run crontab -l to show the crontab file, to check that the file has been saved correctly.