Import Users from LDAP
This guide is for importing your required resources, including users, groups, and devices, into the IDmelon panel via LDAP.
Creating and Obtaining a Token
- Go to the IDmelon panel and then click on
Settings
from theWorkspace
section. - On the
Settings
page, click on theAPI Key Management
section and then click on theCreate
button. - Choose a desired name for the token in the
Token Name
section and then click on theNext
option. - Copy the displayed token value.
Downloading the Tool
- In the IDmelon panel, go to the
Users
menu and thenAll Users
. Click on theImport Users
option and selectLDAP
from the dropdown menu. - On the displayed page, download both the
SyncStream.exe
andconfig.json
files and place them in a folder.
Configuring the Tool
- Open the
config.json
file and change the following values according to your LDAP settings:LDAP_SERVER
LDAP_PORT
LDAP_BASE_DN
LDAP_USER
LDAP_PASSWORD
- Set the
AUTH_TOKEN
value according to the copied token value from the token creation and obtaining step.
Running the Tool
Configure the
config.json
File- Ensure that the
config.json
file is correctly configured with the necessary settings.
- Ensure that the
Check Connection to Active Directory
- Verify the connection to Active Directory by using the
healthcheck
parameter. - Command:
SyncStream.exe healthcheck
- Verify the connection to Active Directory by using the
Retrieve List of Groups
- Get the list of groups by using the
group
parameter. The result will be saved to a file namedgroup_list.txt
. - Command:
SyncStream.exe group
- Get the list of groups by using the
Prepare Groups for Syncing
- Open the
group_list.txt
file to review the list of groups. - Based on this list, create and save the groups you want to sync in the
group_filter.txt
file.
- Open the
Sync Selected Groups
- Run the sync process to synchronize all selected groups along with their users and the list of devices with the API.
- Command:
SyncStream.exe sync
Quick Commands Reference
Edit Configuration:
- Edit
config.json
- Edit
Health Check:
SyncStream.exe healthcheck
Retrieve Groups:
SyncStream.exe group
Edit Group Filter:
- Edit the
group_filter.txt
file based on thegroup_list.txt
file.
- Edit the
Sync Groups:
SyncStream.exe sync
Check version:
SyncStream.exe version
Log:
SyncStream.exe sync --dump
SyncStream.exe sync --log info
Troubleshooting
- Run Health Check option to ensure this tool can communicate with AD and the remote API:
SyncStream.exe healthcheck
- Add
--dump
to each command you run to save logs to a log file.SyncStream.exe sync --dump
- Add
--log info
to each command you run to see more info.SyncStream.exe sync --log info