A minimal testcase looks like:
$ sudo dpkg-reconfigure slapd# Choose hdb as database type, enter an
admin password, and accept defaults for other values.
$ sudo ldapadd -Y EXTERNAL -H ldapi:/// -f db.ldif
# Where db.ldif looks like this:
$ cat db.ldif
dn: olcDatabase={1}hdb,cn=config
It looks like the default database created when configuring slapd was
conflicting with what I was specifying in comment #3. I guess this has
changed with the recent version provided with 14.04.
If I enter the right values during dpkg-reconfigure, and leave out this
whole section of db.ldif, it
A minimal testcase looks like:
$ sudo dpkg-reconfigure slapd# Choose hdb as database type, enter an
admin password, and accept defaults for other values.
$ sudo ldapadd -Y EXTERNAL -H ldapi:/// -f db.ldif
# Where db.ldif looks like this:
$ cat db.ldif
dn: olcDatabase={1}hdb,cn=config
It looks like the default database created when configuring slapd was
conflicting with what I was specifying in comment #3. I guess this has
changed with the recent version provided with 14.04.
If I enter the right values during dpkg-reconfigure, and leave out this
whole section of db.ldif, it
If I use aa-complain to (hopefully) remove any problems caused by
apparmor, I still see the same problem:
$ sudo apt-get purge slapd
snip
$ sudo rm -rf /var/lib/ldap/
$ sudo rm -rf /var/lib/slapd/
$ sudo apt-get install slapd
$ sudo aa-complain /usr/sbin/slapd
Setting /usr/sbin/slapd to complain
Errors in syslog now when I shut down slapd (having added some entries):
Jun 2 03:05:33 fitpc slapd[17448]: daemon: shutdown requested and initiated.
Jun 2 03:05:33 fitpc slapd[17448]: slapd shutdown: waiting for 0
operations/tasks to finish
Jun 2 03:05:33 fitpc slapd[17448]:
If I use aa-complain to (hopefully) remove any problems caused by
apparmor, I still see the same problem:
$ sudo apt-get purge slapd
snip
$ sudo rm -rf /var/lib/ldap/
$ sudo rm -rf /var/lib/slapd/
$ sudo apt-get install slapd
$ sudo aa-complain /usr/sbin/slapd
Setting /usr/sbin/slapd to complain
Errors in syslog now when I shut down slapd (having added some entries):
Jun 2 03:05:33 fitpc slapd[17448]: daemon: shutdown requested and initiated.
Jun 2 03:05:33 fitpc slapd[17448]: slapd shutdown: waiting for 0
operations/tasks to finish
Jun 2 03:05:33 fitpc slapd[17448]: