[Date Prev][Date Next] [Chronological] [Thread] [Top]

searching on port 389 or 636

Is this the correct operation after configuring SSL/TLS?

I noticed that I can not do a search using port 389:

localhost:/etc/ldap/scripts# ldapsearch -x -h ldap://ldap2.smb-ldap.org -D "cn=Manager,dc=smb-ldap,dc=org" -s base -W
Enter LDAP Password:
ldap_bind: Can't contact LDAP server (81)

When I specify ldaps:// it works:

localhost:/etc/ldap/scripts# ldapsearch -x -H ldaps://ldap2.smb-ldap.org -D "cn=Manager,dc=smb-ldap,dc=org" -s base -W

I show ldap running on both ports:

localhost:/etc/ldap/scripts# nmap localhost

Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-04-02 10:45 AKST
Interesting ports on localhost (
(The 1644 ports scanned but not shown below are in state: closed)
389/tcp open  ldap
636/tcp open  ldapssl

I appreciate any insight,

PS: Perhaps this is because the slapd.conf and the ldap.conf both have TLS.... settings in them? Do I need to specify a parameter to allow both searches to suceed?