Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 May 2010 16:34:07 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Frank Bonnet <f.bonnet@esiee.fr>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: LDAP and LDAPS on the same server ?
Message-ID:  <07494512@bb.ipt.ru>
In-Reply-To: <4BE2B2FA.1010900@esiee.fr> (Frank Bonnet's message of "Thu, 06 May 2010 14:15:54 %2B0200")
References:  <4BE2B2FA.1010900@esiee.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 06 May 2010 14:15:54 +0200 Frank Bonnet wrote:

> I actually have an Openldap directory server that runs on a FreeBSD box
> at 8.0-RELEASE amd64

> It runs nicely but I want to add LDAPS service on the SAME server.

> Is it possible ? I have generated

> cert.crt
> cert.csr
> cert.key

> as instructed in the FreeBSD howto but when I add the following
> lines in slapd.conf file it fails to restart

> TLSCACertificateFile  /usr/local/etc/openldap/ssl/cert.crt
> TLSCertificateFile    /usr/local/etc/openldap/ssl/cert.crt
> TLSCertificateKeyFile /usr/local/etc/openldap/ssl/cert.key

> in ldap.conf file I have the following

> #
> # LDAP Defaults
> #

> # See ldap.conf(5) for details
> # This file should be world readable but not world writable.

> BASE	dc=esiee,dc=fr
> URI	ldap://ldap.esiee.fr ldaps://ldap.esiee.fr

> #SIZELIMIT	12
> #TIMELIMIT	15
> #DEREF		never

> What did I missed ?

I'm not sure but maybe you should add the following line to
/etc/rc.conf[.local]:
-----
slapd_flags='-h "ldap:/// ldaps:///"'
-----

Look at SLAPD(8C) for more details.

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?07494512>