Directory Wizards Inc.

Solutions For Your Directory Needs

RSS feed
Add to Google


 

Categories

Knowledgebase

Setting showInAddressBook for synced objects

Category:Map Files

Last Updated:2010-09-10

 

Download PDF version

 

You can set showinaddressbook for each synced object using a custom mapping.


You will need the DN of the addressbook(s).  For multiple addressbooks, insert multiple showInAddressBook mapping lines.

 

Option 1: If a Domain Admin is specified on the Destination tab of your connection, you may use the new v5 address variables to set showinaddressbook. (Domain Admin is required to read the addressbook roots.) As of SimpleSync v5, these mappings are included by default.  These mappings allow your sync to automatically stamp values for 'All Contacts' and 'Default Global Address List' addressbooks.

 

showinaddressbook=cn=All Contacts,~addressbookroots~
showinaddressbook=~globaladdresslist~

 

If all you need is the default lists noted above, test your sync and you should find your newly created contacts appear in the addressbooks as desired

 

Option 2:  If your Destination tab does not use a Domain Admin, or your first test sync indicates the detected addressbooks are not valid, you may hard code the showinaddressbook using custom mappings.

 

To do this, you will need to know your local CN and DC tree.  The below example uses cn=dirwiz and DC=dir,DC=domain,DC=com. If you don't know these values, open ADSI Edit and drill down under the 'Configurations' tree to identify the values. Note: If the 'Configurations' tree is not visible, you can turn on the connection to show it.


Custom mappings may also be used to stamp additional showinaddressbook values.

 

Create a custom map file.

 

Locate the default mappings noted above.  (If you are using a prev5 version, the defaults will not be there.)

 

The following is an example of a custom mapping that manually sets two (2) addresbook settings. Each showInAddressbook line should appear in the map file as all one line, no carriage returns.

 

showInAddressBook=CN=All Contacts,CN=All Address Lists,CN=Address Lists Container,CN=DirWiz,CN=Microsoft Exchange,CN=Services,CN=Configuration,
DC=dir,DC=domain,DC=com

 

showInAddressBook=CN=Default Global Address List,CN=All Global Address Lists,CN=Address Lists Container, CN=DirWiz,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=dir,DC=Domain,DC=com

 

You may add as many showinaddressbook values as you need.  Each mapping MUST indicate a valid addressbook.

 

If your connection is configured to use List Processing to sync Groups as groups (Destination tab) then you also need to create a custom LIST map (custom map tab) and add the same custom showinaddressbook mappings.