LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) centos (https://www.linuxquestions.org/questions/linux-server-73/ldap_sasl_bind-simple-cant-contact-ldap-server-1-centos-4175435679/)

kribo 11-05-2012 03:13 AM

ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) centos
 
hi, i try to configure ldap server on centos 6.3 and it work for authentication proftpd and login ubuntu. and than i want to secure my ldap with SSL/TLS. but i got some problem.

Quote:

when client try this command
ldapsearch -x -H ldaps://192.168.0.27 -b 'dc=myldap,dc=id' 'uid=*'
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
additional info: TLS: hostname does not match CN in peer certificate
but when try in server:
i have all index of uid

i followed this article http://www.server-world.info/en/note...S_6&p=ldap&f=3

my log server is:
Nov 2 21:22:39 client slapd[1855]: conn=1085 fd=16 ACCEPT from IP=192.168.0.27:59422 (IP=0.0.0.0:636)
Nov 2 21:22:39 client slapd[1855]: conn=1085 fd=16 TLS established tls_ssf=256 ssf=256
Nov 2 21:22:39 client slapd[1855]: conn=1085 fd=16 closed (connection lost)

henrycoffin 11-07-2012 05:40 AM

My first guess would be that you probably don't have the IP address in the certificate!

Try connecting to ldaps://servernameusedincert instead

kribo 11-23-2012 04:05 AM

Quote:

Originally Posted by henrycoffin (Post 4824008)
My first guess would be that you probably don't have the IP address in the certificate!

Try connecting to ldaps://servernameusedincert instead



yes it work, i try to insert
ldaps://myldapdomain.

thank you


All times are GMT -5. The time now is 09:32 AM.