Explains what the feature is or what its benefits are to the user or customer.
Use this procedure to synchronize your ThoughtSpot system with an LDAP server.
Before synchronizing users and groups, you will need this information:
- IP address of the server where your ThoughtSpot instance is running.
- Port on the server where your ThoughtSpot instance is running.
- Administrator login username and password for your ThoughtSpot instance.
- URL of the LDAP server, or hostport.
- Login username and password for the LDAP system.
An example username would be
- Distinguished Name (DN) for the base to start searching for users in the LDAP system.
There are two ways for you to fetch users and groups from LDAP and populate them into your ThoughtSpot system. You can either use a synchronization script that will walk you through the process, or input your own script commands. You can also create your own script by using the LDAP and ThoughtSpot Python APIs. If you need details on the Python APIs, contact ThoughtSpot Support.
To use the interactive sync script:
- Log In to the Linux Shell Using SSH.
- Run the command to start the script:
python syncUsersAndGroups.py interactive
- Answer the prompts using the information you collected above. For example:
IP of server where ThoughtSpot instance is running: 10.67.145.34 Port of server where ThoughtSpot instance is running: 6789 Login username for ThoughtSpot system: admin Login password for ThoughtSpot system: 12345 Complete URL of server where LDAP server is running in format ldap(s)://<host>:<port>: ldap://192.168.2.48:389 Login username for LDAP system: firstname.lastname@example.org Login password for LDAP system: 12345 Syncs user and groups between LDAP and ThoughtSpot systems (y/n): y Delete entries in ThoughtSpot system that are not currently in LDAP tree being synced (y/n): n Distinguished name for the base to start searching groups in LDAP System: DC=ldap,DC=thoughtspot,DC=com Scope to limit the search to (choice number) 0:base Searching only the entry at the base DN 1:one Searching all entries on level under the base DN - but not including the base DN 2:tree Searching of all entries at all levels under and including the specified base DN: 2
Filter string to apply the search to: (|(CN=TestGroupAlpha)(CN=TestGroupBeta))Answering this prompt is optional. If left blank, the default value of
'(CN=*)'will be used.
Apply sync recursively, i.e. Iterates through group members and creates member groups, users and relationships in a recursive way. (y/n)This prompt is asking if you would like to include group members even if they do not belong to the current sub tree that is being synced.
- Alternatively, to input your own shorthand script commands:
- Issue the Python script commands, supplying all of the above information, following this format example:
python syncUsersAndGroups.py script \ –-ts_ip <IP_address> \ --ts_port <port> \ --ts_uname <ts_username> \ --ts_pass <ts_password> \ --ldap_hostport '<hostport>' \ --ldap_uname '<ldap_username>' \ --ldap_pass '<ldap_password>' \ --sync \ --purge \ --basedn 'DC=ldap,DC=thoughtspot,DC=com' \ --filter_str '(|(CN=TestGroupAlpha)(CN=TestGroupBeta))' \ --include_nontree_membersThe bottom half of the above command example targets sub trees under the DC called TestGroupAlpha and TestGroupBeta, and iterates through them recursively to create/sync users, groups, and their relationships in the ThoughtSpot system. It also deletes any other entities created in the ThoughtSpot system from this LDAP system that are not currently being synced.