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

Re: SSL/TLS - Help Please


I tried start my server with the "-d -1" option.

In the cliente i got this message:
    «ldap_start_tls: Can't contact LDAP server (81)»

This is the error message i got in the server:

«TLS trace: SSL_accept:before/accept initialization
tls_read: want=11, got=0
TLS: can't accept.
connection_read(13): TLS accept error error=-1 id=1, closing
connection_closing: readying conn=1 sd=13 for close
connection_close: conn=1 sd=13
daemon: removing 13
conn=1 fd=13 closed»

It looks like TLS is expeting the value 11 and is getting the value 0.

I looked in the OpenLDAP archive and in google but i don't know what may be causing this error.

Any idea? Can someone help me? or give some directions.

Best Regards

Siva Kollipara wrote:
On Fri, 23 Jan 2004, Miguel Baptista wrote:
can u give more detail on the error information.

try using -d -1 on ur ldapsearch that should more detailed info.

i assume u have installed ldap with ssl support (and the correct path to
ssl libraries) also check if ur server permission to read
the CA certs (server as root shuld b ok)

best bet try with -d -1 and that should b sufficient to find out the

lemme know if this helps,

I'm using Openldap v.2.1.22 and openSSL 0.9.7b

I start my server with this command line:
/usr/local/libexec/slapd -d9 -h "ldap:/// ldaps:///"

PORT 636
                           TLS_CACERT  /var/myca/estagio/cacert.pem

My .ldaprc (in my user's home)


                                          # client authentication
TLS_CERT /home/miguel/client.pem
TLS_KEY /home/miguel/client.key.pem

When i try this:
ldapsearch -x  -D "cn=Manager,dc=uminho,dc=pt" '(objectclass=*)' -H
ldaps://estagio  -W

I got this error (in ldap server ):
TLS trace: SSL_accept:before/accept initialization
TLS: can't accept.
connection_read(13): TLS accept error error=-1 id=4, closing

and with this:
ldapsearch -x -D "cn=Manager,dc=uminho,dc=pt" '(objectclass=*)'  -H
ldaps://estagio -w "secret" -ZZ

i got the same error

I tried the testing commands (from the how to, and everything seams ok):
openssl s_client -connect myserver.com:636 ...

Can anyone help? I'm forgeting something? I've read something about the
  environment variable LDAPNOINIT, is this necessary?

Best Regards