LDAP sync with multiple OU

Document ID : KB000101512
Last Modified Date : 14/06/2018
Show Technical Document Details
Introduction:
Service Desk usres are not allin the same OU (Organization Unit in LDAP)
 
Question:
Can I sync users from AD with multiple OU 

For example 
Bring user from OU xxx 
OU=xxx,OU=sites,OU=users 

And user from OU yyy 
OU=yyy,OU=sites,OU=users 
 
Environment:
Windows 2008R2, Windows 2012, Windows 2012
Service Desk 14.1
Service Desk 17.0
Service Desk 17.1
 
Answer:
The pdm_ldap_import and pdm_ldap_sync use the ldap_search_base

To sync or import contacts in ldap from multiple organizations, we will need all OU be the child of the node pointed by ldap_search_base

The following example is about organization o1 and organization o2 

1/ ldap sync on OU=ou1
The following screen shots show the config and result
ou1conf
ou1 result

2/ ldap sync on OU=ou2
The following screen shots show the config and result
ou2conf
ou2result



3/ ldap sync on OU to retrieve both Organizations, it is the expected result
We have contacts in ou1 and ou1 processed by the pdm_ldap sync and pdm_ldap_import


The following screen shots show the config and result
User-added image
OUresult