Hey FreeBSD
I'm building out my lovely FreeBSD box into an OpenLDAP server. So far, it seems to be working fine and I am populating the directory with data. And all the slap and ldap toos (like ldapvi and others) are working.
However, when I try to integrate TLS security slapd won't restart.
Here's the relevant part of my slapd.conf that deals with TLS. Let me know if you would like to see more of it, but really this only stops working when I uncomment these lines relating to TLS:
As far as I know, my keys seem ok with appropriate permissions:
And when I go to restart slapd this is what happens...
And this happens in /var/log/messages:
And it looks like I had compiled with Cyrus SASL support.
All it takes to get this to work again is to comment out the lines relating to TLS in my slapd.conf
As you can see:
OpenLDAP is perfectly happy as long as TLS encryption is not enabled.
Does anyone have any experience and insight to offer in getting this to work?
Thanks!
I'm building out my lovely FreeBSD box into an OpenLDAP server. So far, it seems to be working fine and I am populating the directory with data. And all the slap and ldap toos (like ldapvi and others) are working.
However, when I try to integrate TLS security slapd won't restart.
Here's the relevant part of my slapd.conf that deals with TLS. Let me know if you would like to see more of it, but really this only stops working when I uncomment these lines relating to TLS:
Code:
## Added logging parameters
loglevel 296
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
## TLS options for slapd
TLSCipherSuite HIGH
TLSCertificateFile /etc/local/slapd-cert.pem
TLSCertificateKeyFile /etc/local/slapd-key.pem
As far as I know, my keys seem ok with appropriate permissions:
Code:
[root@LBSD2:/etc/local]#ls -al
total 10
drwxr-xr-x 2 root wheel 512 Sep 13 04:44 .
drwxr-xr-x 21 root wheel 2560 Sep 13 04:41 ..
-rw------- 1 root wheel 1371 Sep 13 04:44 slapd-cert.pem
-rw------- 1 root wheel 887 Sep 13 01:31 slapd-key.pem
And when I go to restart slapd this is what happens...
Code:
[root@LBSD2:/usr/local/etc/openldap]#/usr/local/etc/rc.d/slapd restart
Stopping slapd.
Waiting for PIDS: 11015.
Starting slapd.
/usr/local/etc/rc.d/slapd: WARNING: failed to start slapd
And this happens in /var/log/messages:
Code:
Sep 13 21:26:07 LBSD2 su: bluethundr to root on /dev/pts/4
Sep 13 21:29:35 LBSD2 bluethundr: /usr/local/etc/rc.d/slapd: WARNING: failed to start slapd
And it looks like I had compiled with Cyrus SASL support.
Code:
┌────────────────────────────────────────────────────────────────────â”
│ Options for openldap-sasl-server 2.4.23 │
│ ┌────────────────────────────────────────────────────────────────┠│
│ │ [X] SASL With (Cyrus) SASL2 support │ │
│ │ [X] FETCH Enable fetch(3) support │ │
│ │ [ ] DYNACL Run-time loadable ACL (experimental) │ │
│ │ [ ] ACI Per-object ACI (experimental) │ │
│ │ [X] DNSSRV With Dnssrv backend │ │
│ │ [ ] PASSWD With Passwd backend │ │
│ │ [X] PERL With Perl backend │ │
│ │ [ ] RELAY With Relay backend │ │
│ │ [ ] SHELL With Shell backend (disables threading) │ │
│ │ [ ] SOCK With Sock backend │ │
│ │ [ ] ODBC With SQL backend │ │
│ │ [ ] RLOOKUPS With reverse lookups of client hostnames │ │
│ │ [ ] SLP With SLPv2 (RFC 2608) support │ │
│ │ [ ] SLAPI With Netscape SLAPI plugin API │ │
│ │ [X] TCP_WRAPPERS With tcp wrapper support │ │
├─└─────v(+)───────────────────────────────────────────────────────┘─┤
│ [ OK ] Cancel │
└────────────────────────────────────────────────────────────────────┘
All it takes to get this to work again is to comment out the lines relating to TLS in my slapd.conf
Code:
## Added logging parameters
loglevel 296
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
## TLS options for slapd
#TLSCipherSuite HIGH
#TLSCertificateFile /etc/local/slapd-cert.pem
#TLSCertificateKeyFile /etc/local/slapd-key.pem
As you can see:
Code:
[root@LBSD2:/usr/local/etc/openldap]#/usr/local/etc/rc.d/slapd start
Starting slapd.
[root@LBSD2:/usr/local/etc/openldap]#/usr/local/etc/rc.d/slapd status
slapd is running as pid 13617.
OpenLDAP is perfectly happy as long as TLS encryption is not enabled.
Does anyone have any experience and insight to offer in getting this to work?
Thanks!