Configuring LDAPS in Darwin
This document provides a guide to configuring LDAPS (LDAP over SSL) in Darwin and integrating it with an LDAP testing tool.
Overview of LDAPS Configuration
LDAPS functionality in Darwin relies on a third-party utility, LDAPQuery.exe, included with the Darwin installation. Two additional tools are particularly useful during setup:
-
LDAP_ActiveDirectory_Test.exe: A Schiller provided tool for generating configuration files (.dau files).
-
LDAPAdmin: An open-source LDAP administration tool.
Pre-requisites
Before proceeding, ensure you have the following:
-
User credentials for the LDAP server.
-
The latest versions of the necessary tools, which can be downloaded from here.
Step 1: Establishing a Connection Using LDAPAdmin
The LDAPAdmin tool is a versatile utility for testing and establishing a connection to an LDAP server. It provides detailed error messages for troubleshooting and can help validate connection parameters before configuring Darwin.
Instructions
-
Launch LDAPAdmin.
-
Click on the Connect icon and select New connection.
-
Fill in the connection parameters provided by your LDAP server administrator:
-
Hostname or IP Address of the LDAP server.
-
Port (default is 389 for LDAP and 636 for LDAPS).
-
Authentication Method (Simple or GSS-API).
-
A valid username and password (anonymous connections are not supported).
-
-
Ensure the connection is successful by clicking Fetch DNs. If successful, you have a valid connection.
Troubleshooting Tips
-
If simple authentication fails, try switching between GSS-API and Simple authentication methods.
-
Use the older "Domain\Username" format if the Principal User Name format (e.g., username@domain) does not work.
Once connected, search for a user in the directory to confirm the LDAP server is correctly responding to queries.
Step 2: Using LDAP_ActiveDirectory_Test
The LDAP_ActiveDirectory_Test.exe tool is used to test and create configuration settings for Darwin to query the LDAP server.
Instructions
-
Input the following details:
-
Username/Password: Use the credentials validated in LDAPAdmin.
-
Domain: The domain to which the user belongs.
-
Connection String: Use the same connection string as in LDAPAdmin (e.g.,
ldaps://<server>orldap://<server>). -
Authentication Method: Match the method used in LDAPAdmin.
-
-
Alternatively, use
ldaps://autoto let Darwin automatically determine the domain server based on the "Domain Controller Setting."-
Domain Controller Setting options:
-
No Conversion: Uses the provided domain.
-
NetGetAnyDCName/NetGetDCName: Determines the domain server dynamically.
-
-
-
Click TestLogon to validate the connection.
Configurable Parameters
The tool allows customization of various parameters:
-
UseSSL/UseTLS: Specify the protocol based on the server configuration.
-
Short Unames: If enabled, only the username (without the domain) is stored.
-
Query UPN: Queries usernames in UPN format (e.g.,
).This email address is being protected from spambots. You need JavaScript enabled to view it. -
Query NT: Queries usernames in NT format (e.g.,
Domain\Username). -
Base Search Path: Restricts queries to a specific subtree in the LDAP directory.
-
UPN Suffix: Overrides the domain part of the UPN if different from the user’s registered domain.
Step 3: Configuring ldapconfig.json
Advanced configuration options can be set in the ldapconfig.json file. The file consists of two main sections: LDAP (connection settings) and Search Fields.
Connection Settings (LDAP)
-
DomainController: Specifies the LDAP server (overwritten by the LDAP Server field in the tool).
-
Port: Defines the port used by the LDAP server (default is 0 for automatic detection).
-
EnsureDomainInUser: Ensures the username includes the domain (e.g.,
@domain). -
User/Password: Fixed credentials for querying the LDAP server (if required).
-
Version: Specifies the LDAP protocol version (default is 3).
-
Authentication: Defines the method:
-
0for Simple -
2for GSS -
3for GSS_SASL (secure GSS)
-
-
TLS/SSL: Set only one to
truefor LDAPS connections. -
StrictCertCheck: Verifies the server certificate (set to
trueto enforce).
Search Fields
-
BaseCommonPath: Starting point for LDAP searches (optional).
-
Domain: Specifies the user’s domain (only one domain is supported).
-
SearchFilter: Defines the query filter (e.g.,
"(UserPrincipalName=%s)"). -
UPN Suffix: Overrides the default domain suffix if necessary.
-
ldapCmd: Points to the executable used for LDAP queries (default is
LDAPQuery.exe). -
ldapParamsUser/ldapParamsGroups: Parameters for querying users and groups (rarely modified).
-
ldapUseOneTimeCrypt: Encrypts passwords for generated files (default is
true).
Generating DAU Files
Once the parameters are successfully tested, use the tool to generate a DAU file. This file contains the finalized configuration and can be imported into Darwin for seamless LDAP integration.
By following these steps, you can ensure a reliable and secure LDAPS setup in Darwin. For further assistance, refer to the official documentation or contact support.
If qurying for users and groups succeed create the DAU file that can be used.