I am attempting to get ldaps working with openldap. I have a wildcard ssl certificate that was issued for this domain and have used ldapmodify to add the relevant files to cn=config as show here.

Once I have completed this, I am unable to restart OpenLDAP.

I have completed setup for OpenLDAP and have confirmed that I can bind successfully using ldap.

I am using Ubuntu 14.04 TLS on an AWS EC2 instance with ports 389 AND 636 open.

Some diagnostics:

/etc/init.d/slapd restart

 * Stopping OpenLDAP slapd                     [ OK ] 
 * Starting OpenLDAP slapd                     [fail]

slapd -u ldap -g ldap -d 65

563e5b20 @(#) $OpenLDAP: slapd  (Ubuntu) (Sep 15 2015 18:19:13) $
ldap_pvt_gethostbyname_a: host=ip-172-31-62-171, r=0
563e5b20 daemon_init: listen on ldap:///
563e5b20 daemon_init: 1 listeners to open...
563e5b20 daemon: listener initialized ldap:///
563e5b20 daemon_init: 2 listeners opened
563e5b20 No passwd entry for user ldap

Issue was that openldap was being denied access to the key file by apparmor. Issue was resolved by proper configuration of openldap's permissions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.