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

Re: ldap not finding internal CA?

--- On Wed, 6/17/09, Mathias Gug <mathiaz@ubuntu.com> wrote:

> From: Mathias Gug <mathiaz@ubuntu.com>
> Subject: Re: ldap not finding internal CA?
> To: "Kurt Yoder" <ktyopenldap@yoderhome.com>
> Cc: openldap-technical@openldap.org
> Date: Wednesday, June 17, 2009, 9:13 PM
> [...]
>> My openldap is version 2.4.15 on Ubuntu Jaunty. Interestingly, I
>> had the same message about self-signed certificates on previous
>> Ubuntu versions, but querying ldap with "TLS_REQCERT demand" works
>> fine.
> As Howard mentioned this should have been fixed in 2.4.16.  However
> could you try to put both the CA certificate *and* the server
> certificate in the cert.file used by the slapd server - (that way
> the whole CA chain is sent to the client by gnutls) ?

Hi Mathias,

How exactly does one do that?  I've tried simply appending the contents of the CA file to the server certificate file and restarting slapd and it has no effect.  

I've tried other various combinations as well but testing against Jaunty still fails while Intrepid works.

Meanwhile I built OpenLDAP 2.4.16 on Jaunty with no Ubuntu patches added to OpenLDAP and it works:

gruntler@jaunty-64:~/src/openldap-2.4.16/clients/tools$ ./ldapsearch -x -V
ldapsearch: @(#) $OpenLDAP: ldapsearch 2.4.16 (Jun 22 2009 17:04:33) $
        (LDAP library: OpenLDAP 20416)
# extended LDIF
# LDAPv3
# base <dc=abcd, dc=efgh, dc=com> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
... snip ...

ldap.conf settings:

BASE    dc=abcd, dc=efgh, dc=com
URI     ldaps://auth01-test ldaps://auth02-test

TLS_CACERT      /etc/ssl/cacerts/my-org.cert.pem
TLS_REQCERT     demand

TIMEOUT         4



gruntler@jaunty-64:~/src/openldap-2.4.16/clients/tools$ /usr/bin/ldapsearch -x -V
ldapsearch: @(#) $OpenLDAP: ldapsearch 2.4.15 (Mar 19 2009 10:07:04) $
        (LDAP library: OpenLDAP 20415)
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)