Syncing to an LDAP Directory
Prerequisites: Be sure to configure the attribute values in
<UserGroupSynchronizers>
before proceeding to the
steps below.The following describes settings for the LDAP synchronizer. Syncing to LDAP imports membership data used to populate groups in Cartella.
To set up the LDAP synchronizer:
- Navigate to [Site_Root].
- Open Cartella.config in a text editor.
- Within
<UserGroupSynchronizers>
, locate the<add>
element named LDAP :<add name="LDAP" authenticator="Cartella.Authenticators.LdapAuthenticator"> <QueryInfo addSeat="true"> <add name="domain" value="domain"/> <add name="server" value="server.domain.com"/> <add name="userName" value="userName"/> <add name="password" value="password"/> <add name="distinguishedName" value="OU=Groups,DC=domain,DC=com"/> <!--Starting point in LDAP tree to begin searching for groups--> <add name="query" value="(&(objectClass=group))"/> <add name="authenticationType" value="Secure"/> <!--Should be a valid value for System.DirectoryServices.AuthenticationTypes--> <add name="groupUserKey" value="member"/> </QueryInfo> <GroupMappings nameKey="sAMAccountName" groupFormatString="ingeniux-{0}"/> <UserMappings loginNameKey="sAMAccountName" FirstNameKey="givenName" LastNameKey="sn" EmailKey="mail" externalIdKey="sAMAccountName" loginNameFormatString="domain\{0}"> <!-- <add storeKey="homeDirectory" cartellaKey="share" /> --> <!--example--> </UserMappings> </add>
- Within the
<QueryInfo>
tag set, provide the LDAP domain, server, userName, password as well as the following values in their respective<add>
nodes:Option Description distinguishedName String that uniquely identifies an entry in the Directory Information tree. query Query specifies what information you are looking for. authenticationType The authentication type should be a valid value for System.DirectoryServices.AuthenticationTypesenum. groupUserKey Member name of users for a group record in LDAP. NoteThe<QueryInfo>
element contains data used by the synchronizer to connect to the user store.ImportantConsult with your organization's systems administrator to obtain these LDAP values.Once the LDAP credentials have been authenticated, each key value within<UserMappings>
is populated with the imported LDAP user information. - Within
<GroupMappings>
, provide the name of the Cartella group that will contain the imported LDAP user information. - In the example above, the
<add>
node named storeKey is commented out. You can uncomment this<add>
element to create custom fields to complement the other<UserMappings>
values. - Save Cartella.config.