Public bug reported:
The following Wiki page (immutable): https://help.ubuntu.com/community/OpenLDAPServer has a step saying to remove the existing tree/data using: sudo rm -rf /var/lib/ldap/* However, this is no good as you also removing the rootdn cn=admin,dc=example,dc=com. This makes it impossible to later start the slapd following the steps on that wiki (using feisty). Two suggestions to fix this: - put the cn=admin,dc=example,dc=com into the intial LDIF dn: cn=admin,dc=example,dc=com objectClass: simpleSecurityObject objectClass: organizationalRole cn: admin description: LDAP administrator - or, IMHO better, to not remove the initial tree at all but instead propose to run dpkg-reconfigure slapd. That makes it a bit more timeless as there are various steps in this procedure that might change. It's also more 'standard' so to say.. Then use ldap -xLLL to add the initial LDIF but with the -c (don't stop on errors). Hope this helps. ** Affects: openldap2.3 (Ubuntu) Importance: Undecided Status: Unconfirmed -- Community docs for OpenLDAPServer remove the rootdn from tree https://bugs.launchpad.net/bugs/112663 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs