Synchronizing Data Through LDAP
LDAP is short for Lightweight Directory Access Protocol.
- LDAP can be considered a tree-like database that stores user and organization information.
- One of the main application scenarios of LDAP is SSO where users are automatically logged in to intranet of their company after logging in on a PC for once.
| Term | Description |
|---|---|
| ou | Organization unit (ou), which is a container object. |
| dc | Domain component (dc) is a part of a domain name. |
| sn | Short for surname. |
| cn | Short for common name. |
| dn | Short for distinguished name (dn). Each dn must be unique. |
| uid | Short for user ID. |
| rdn | Relative distinguished name (RDN) is similar to the relative path in the file system. |
This section describes how to synchronize organization and user data to OpenLDAP through the LDAP protocol.
Configuration process

Prerequisites
You have permissions to access the administrator portal.
Deploying and Configuring the LDAP Service
Deploy and configure the LDAP service. For details, see Setting Up an LDAP Server and Configuring LDAP Connection.
Adding an Application
- Log in to the administrator portal.
- In the top navigation pane, choose Resources > Applications.
- Click Add Custom Application in the Custom Applications section, set the logo and application name, and click Save.
Configuring the Application
- Click the application added in Adding an Application and click the application icon on the application information page.
- On the application details page, choose General Information > Integration, enable synchronization, select LDAP, and click Save.
The protocol cannot be changed once specified.
- Choose Synchronization Settings in the left pane, click the Parameters tab, and configure the synchronization parameters. Figure 1 Configuring synchronization parameters
Table 2 Common parameters Parameter
Description
* Host
Host name or IP address of the LDAP server.
TCP Port
TCP/IP port of the LDAP server.
SSL
Default value: true, which indicates that SSL is used to connect the LDAP server.
Protocol Version
Default value: TLSv1.2. Recommended: TLSv1.3 and TLSv1.2.
Principal
Identifier used to verify the LDAP server.
Password
Authentication password of the principal.
* Base Contexts
Top-level node in the LDAP directory to be synchronized.
- Once configured, click Save. To test the connectivity, click Test.
- Go to the General tab page, and configure the data processing logic.

- To synchronize other user attributes, choose Object Models > Application Account Model in the left pane, click the Attributes tab, and click Add to add more attributes. employeeNumber is used for illustration.
- Built-in attributes can be modified but cannot be deleted.
- Modify or delete non-built-in attributes by clicking Modify or Delete in the Operation column.
Figure 2 Adding an account attribute
Table 3 Attribute definition Parameter
Mandatory
Description
Attribute
Yes
Account attribute of the application, for example, employeeNumber.
Label
Yes
Customize this parameter.
Description
No
Customize this parameter.
Attribute Type
Yes
The attribute type varies depending on the attribute name and cannot be modified.
Format
No
This parameter cannot be modified.
Required field
No
Deselected by default.
- Switch to the Mappings tab page, click Modify, and configure attribute mappings.
Table 4 Mapping configuration Parameter
Description
User
Attribute (such as mobile number) in OneAccess that will be mapped to the application.
Conversion Mode
Attribute mapping mode.
Script Expression
Enter a script if you specify the conversion mode as Script-based.
Execution Mode
Operation to be performed when user data is synchronized from OneAccess to the target application.
Application Account
Account attribute of the application.
- To synchronize organizations, choose Object Models > Application Organization Model, and enable the application organization model. The model cannot be disabled once enabled.
- Built-in attributes can be modified but cannot be deleted.
- Modify or delete non-built-in attributes by clicking Modify or Delete in the Operation column.
Figure 3 Enabling the application organization model
- To synchronize other organization attributes, choose Object Models > Application Organization Model in the left pane, click the Attributes tab, and click Add to add more attributes. Figure 4 Adding an organization attribute
Table 5 Attribute definition Parameter
Mandatory
Description
Attribute
Yes
Organization attribute of the application.
Label
Yes
Customize this parameter.
Description
No
Customize this parameter.
Attribute Type
Yes
The attribute type varies depending on the attribute name and cannot be modified.
Format
No
This parameter cannot be modified.
Required field
No
Deselected by default. It cannot be modified.
- Switch to the Mappings tab page, click Modify, and configure attribute mappings.
Table 6 Mapping configuration Parameter
Description
Organization
Organization attribute in OneAccess that will be mapped to the application.
Conversion Mode
Attribute mapping mode.
Script Expression
Enter a script if you specify the conversion mode as Script-based.
Execution Mode
Operation to be performed when organization data is synchronized from OneAccess to the target application.
Verifying Data Synchronization to OpenLDAP
- On the application details page, choose Authorization > Application Organizations in the left pane. Click Authorization Policy, enable automatic organization authorization, select organizations to be synchronized, click Save, and then click Add.
- To delete synchronized organizations, deselect the organizations, click Save, and then click Delete.
- To add a virtual organization, click + in the lower left.
Figure 5 Authorizing organizations
- In the left pane, choose Authorization > Application Accounts. Then click Add Accounts to authorize specific users to access the application. To authorize access using a policy, see the descriptions about the application account authorization policy in Modifying Application Configurations. Figure 6 Adding accounts
- Choose Authorization > Synchronization Events in the left pane, and view the synchronization records. You can view and filter the organization and user modification and deletion records. Figure 7 Viewing the synchronization events
- View the synchronized data in LDAP.

Last Article: Synchronizing Data to Atlassian Through SCIM
Next Article: Authentication Provider Integration
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.