[Bug 1325446] Re: Database corrupted during ldapadd

2014-06-02 Thread Andy Balaam
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

[Bug 1325446] Re: Database corrupted during ldapadd

2014-06-02 Thread Andy Balaam
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

[Bug 1325446] Re: Database corrupted during ldapadd

2014-06-02 Thread Andy Balaam
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

[Bug 1325446] Re: Database corrupted during ldapadd

2014-06-02 Thread Andy Balaam
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

[Bug 1325446] Re: Database corrupted during ldapadd

2014-06-01 Thread Andy Balaam
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

[Bug 1325446] Re: Database corrupted during ldapadd

2014-06-01 Thread Andy Balaam
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]:

[Bug 1325446] Re: Database corrupted during ldapadd

2014-06-01 Thread Andy Balaam
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

[Bug 1325446] Re: Database corrupted during ldapadd

2014-06-01 Thread Andy Balaam
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]: