On 8/26/19 2:50 PM, Nicolas Kovacs wrote:
So it looks like my 389 DS server is running. I admit I'm fighting every
step to get this thing to run.
As it looks, the next step is to test the LDAP client connection. Which
leads me to my first question.
When TLS is enabled, is it still possible to get plain (e. g.
unencrypted) connections from a client?
Yes. By default the non-secure port (LDAP)
is 389, and the secure port
(LDAPS) is 636
What commands do you use on a Linux client to test basic LDAP
connection, plain and/or secure?
You can use ldapsearch to test query the server. Replace YOUR_FQDN with
your fully qualified domain name, and "slapd-YOUR_INSTANCE_NAME" with
the appropriate value you used during installation (look under /etc/dirsrv/)
None secure port:
# ldapsearch -h YOUR_FQDN -p 389 -xLLL -b "" -s base
Secure Port (TLS)
# LDAPTLS_CACERTDIR=/etc/dirsrv/slapd-YOUR_INSTANCE_NAME ldapsearch
-xLLL -H 'ldaps://YOUR_FQDN:636' -b "" -s base
---> Can also set TLS_CACERTDIR in /etc/openldap/ldap.conf to avoid
setting the ENV variable with ldapsearch.
Thanks & Cheers,
389 Directory Server Development Team