Directory Wizards Inc.

Solutions For Your Directory Needs

RSS feed
Add to Google


 

Categories

Knowledgebase

Can I modify the DN format of objects created in AD (NAME) ?

Category:Active Directory

Last Updated:2011-08-03

 

Download PDF version

 

The default DN mapping for creation of a destination AD contact is:


dn=cn=~mail~,~struct~

 

This results in a DN that looks like this:
DN=CN=JSmith@domain.com,ou=SyncContainer,dc=domain,dc=com.

 

In Users and Computers, the 'Name' value matches the CN value in the DN.

 

The 'Name' value should not be confused with the 'displayname' attribute which is what everyone will see in the GAL. If you want to see Displayname in U&C, select the Displayname column to be viewed.

 

This default value for CN is preferred because the email address is more likely to be unique than the displayname (or any name part combination). If you have duplicate name values (i.e. John Smith), subsequent objects with that name won't sync, but will throw a Duplicate DN error instead. Therefore, using the default DN mapping is recommended.

 

Having said that, if you really want to, you can customize the DN mapping to use displayname (or some other mapped value) instead of email address.

 

Create a custom OBJECT mapfile and modify the first line, the DN mapping:

 

default: dn=cn=~mail#64~,~struct~

custom: dn=cn=~cn#64~,~struct~

 

The value of ~cn~ is the Displayname value in the format selected on the Displayname tab of the connection.

 

If you have further questions about this or any other custom mapping, please forward your custom map file as well as your latest high level Sync or Sim logs.

 

Custom map files are located in \C:\UnitySync-v1.xx\Global\Map\Custom.
Logs are located in \UnitySync-v1.xx\Connections\YourConnectionName\Log.