In my previous post [link], we discussed the various options for mapping Notes user/group names to the equivalent identities in SharePoint. One of the most popular options for doing this is to configure Notes Migrator for SharePoint to perform a lookup in Active Directory, or some other LDAP directory.
In order to use this feature, it must be possible to construct an LDAP query that will find the account that should be used in SharePoint, given the Notes name. For example, if your company stores the Notes name in an AD property called "NotesName", you could execute a query like this:
(&(ObjectClass=Person)(description={0}))
In the above query, the {0} part will be replaced with a formatted version of the Notes name and the entire Query will be send to the directory server. For example, if the Person objects in AD had a field called "distinguishedName" and were formatted as Windows names (like "QUEST\Steve Walch") the you would could use a query like this:
(&(ObjectClass=Person)(distinguishedName={0}))
Or, if the Person objects in AD had a field called "notesName" and were formatted as Notes abbreviated names (like "Steve Walch/Quest") the you would could use a query like this:
(&(ObjectClass=Person)(notesName={0}))
Undocumented feature:
By default, Notes Migrator for SharePoint uses the ‘distinguishedName’ property from that selected objects as the basis for adding names to the SharePoint. This should work in most cases, especially when the directory you are querying is the same one SharePoint uses. In rare cases, however, this name will not work. If there was a different directory property (other than ‘distinguishedName’) that contained a more useful version of the name that would work in SharePoint, there is actually have a way to override the default property name that is used.
You can override that directory property that is used by editing the XML configuration file at C:\Documents and Settings\All Users\Application Data\Quest Software\Notes Migrator For SharePoint\4.0\Notes\Options.config. Look for the AdsiFromNotesNameProp> tag in the <Adsi> section. and change the value to teh alternate name you want to use.
<Adsi>
<AdsiLoginPassword>0fvi8e79Smo=</AdsiLoginPassword>
<AdsiFromNotesNameQuery>(&(ObjectClass=Person)(description={0}))</AdsiFromNotesNameQuery>
<AdsiFromNotesNameProp>alternateName</AdsiFromNotesNameProp>
</Adsi>