Use LDAP Over SSL to Lock Down Active Directory Traffic
This applies to SafeConsole On-Prem 5.x
The standard protocol for reading data from and writing data to Active Directory (AD) domain controllers (DCs) is LDAP.
To make LDAP traffic secure, you can use the Secure Sockets Layer/Transport Layer Security (SSL/TLS) protocols; this combination is referred to as LDAP over SSL -- or LDAPS. To ensure that no one else can read the traffic, SSL/TLS establishes an encrypted tunnel between an LDAP client and a Windows Domain Controller.
To use LDAP over SSL with SafeConsole's Active Directory integration please follow the following steps (applies to version 5.0.4 and up):
- Verify you can connect to your AD with normal LDAP connection on port 389. (This is optional but ensures we have the proper login credentials and AD server hostname.
- Open "Command Prompt" with Administrator rights.
- Stop SafeConsole service with command: net stop safeconsole
- Download your AD's Root CA certificate (x.509 formatted) to your desktop.
- Change working directory to your desktop: cd %USERPROFILE%\Desktop
- Run this command to import the certificate into the Java keystore used by SafeConsole: "c:\program files (x86)\safeconsole\jre\bin\keytool.exe" -import -trustcacerts -alias ad_root_ca -file your_root_ca_certificate.cer -keystore "c:\program files (x86)\safeconsole\jre\lib\security\cacerts"
- At the password prompt enter the default password: changeit
- Answer Yes to trust the certificate.
- Edit the SafeConsole.ini file with command: notepad "c:\program files (x86)\safeconsole\SafeConsole.ini"
- Find and change lines: ldap-protocol=ldaps and ldap-port=636
- Save file and run the SafeConsoleConfigurator.
- Go through the setup tool to properly set correct settings and start SafeConsole.
- You should now be able to connect SafeConsole securely over LDAPS. You may check the port that SafeConsole.exe is using by running command (It should now be using port 636 instead of 389.): netstat -ab
Please feel free to submit a ticket if you are still having issues.