How to Configure LDAP Sync with the Altium Vault
Contents
An LDAP Sync allows the administrator of an Altium Vault to leverage the network domain’s existing username and password credentials, so that user credentials do not have to be created manually one at a time on the USERS page of the vault's browser-based interface. When setup correctly, the USERS page will automatically populate with user credentials, enabling any user listed to sign into the Altium Vault using their regular corporate network username and password.
This article details a proven approach that has been successfully used in setting up an LDAP Sync on a domain. Try this approach when setting up an LDAP Sync on your own domain.
What do I need?
- Standard LDAP - Altium Vault 2.5 or later.
- LDAPS (LDAP over SSL) - Altium Vault 2.6 or later.
- Administrative access to the Altium Vault.
- Optionally, an extremely helpful utility is an application called LDAP Admin (download LdapAdminExe-<version>.zip from http://www.ldapadmin.org/)
Obtaining the LDAP Search string (Distinguished Name)?
When configuring an LDAP Sync task through the Altium Vault's bowser-based interface, you need to supply the LDAP Distinguished Name (DN). This is entered in string format, and identifies the base object of the LDAP search. To get this string, we're going to use the LDAP Admin utility, so first ensure the zip file is downloaded, and extract out the LdapAdmin executable therein.
Run the LdapAdmin.exe executable as Administrator (just right-click on it and select Run as administrator).
When the LDAP Admin panel opens, choose Start » Connect to access the Connections dialog, then double-click New connection to access the Connection properties dialog.
On the General tab of the Connection properties dialog, configure the connection information in relation to your domain, an example of which might be:
- Connection name: just any arbitrary name to be used for the connection icon.
- Host: testsite.com
- Port: 389
- Base: DC=testsite, DC=com
- Enable the GSS-API option.
- Account: just leave the Use current user credentials option enabled.
With the connection properties configured, press the Test connection button. If all is set correctly, you should see the Connection is successful message. Click OK to finish creating the new connection.
You now need to identify the string that targets the base object of the LDAP search. To do this:
- Select your newly-created connection and click OK in the Connections dialog - your network domain and user group hierarchy will be presented.
- Expand the relevant folder path until you get to the folder containing the required users.
- Right-click on this folder and choose the Search command from the context menu. This will open the Search panel. The key piece of information you are after is the string already populated in the Path field. Reading from left-to-right, this string represents the path to this folder of users from the bottom-up, within the domain structure. For our example, this string is: OU=Engineers,OU=Users,DC=testsite,DC=com.
- Copy and paste this string to a text file for subsequent use in the configuration process, or optionally just leave the Search panel accessible.
At this point, the LDAP Admin utility is no longer required for any further steps.
Configuring an Altium Vault to use LDAP Sync
Now, let’s focus on the Altium Vault. Sign into the target Altium Vault - through its browser-based interface - as an Administrator. If you are intending to create user credentials from LDAP automatically, then you probably want to remove any existing manually created users. So ideally just start with the default Administrator's role users - admin and System.
If you want the users from the LDAP Sync to be associated with a specific role, you can switch to the Roles tab and create a new role as required (e.g. Electrical Designers, Mechanical Designers, PCB Specialists, etc…), leaving it empty of users. For our example, we'll create a role called Engineers.
Now switch to the LDAP Sync tab, and click the Add sync task button to access the Add LDAP Sync Task dialog.
Fill in the following information (based on our example domain structure we have used in the previous section):
General
- Target Role: Engineers
- Url: LDAP://testsite.com:389
- DN: OU=Engineers,OU=Users,DC=testsite,DC=com
- Filter: leave this field blank to acquire all users from the specified group determined on the domain (in the DN field). If the nominated area of the domain structure contained further groupings of users, you could extract just a subset of those users by using an appropriate filtering string here.
For example, consider if there had been a set of users under the group of Engineers, gathered to have administrative powers (CN=Administrators). To target just this set of users, and not all of the Engineers (under the OU=Engineers area of the domain structure), a query string could be written that targets this point in the domain structure:
(&(objectClass=user)(memberof=CN=Administrators,OU=Engineers,OU=Users,DC=testsite,DC=com))
- Scope: sub
- Attributes: sAMAccountName
Authentication
- User Name: domain\<your username> (e.g. testsite\neal.geneare)
- Password: <your password>
Attribute Mapping
- First Name: givenName
- Last Name: sn
- Email: mail
- User Name: sAMAccountName
User authentication type
- Radio button: Windows
- Domain: testsite.com
When you have completed entering all settings, click Save. This will initiate the Sync process, which may take a minute or two, as it processes the information you just entered. Watch the Sync status messages at the top of the LDAP Sync page, to see when the process completes.
Now click on the Users tab. This list should now be populated with all users as defined by the OU=<GroupName> setting (see example image below). Now anyone can sign into the Altium Vault using their regular Windows login. (e.g. username: neal.geneare, password: ************).