# Run the deamon in foreground
/usr/sbin/slapd -g openldap -u openldap -f /etc/ldap/slapd.conf -d 256
# Then in another shell apply opera.ldif and you will get a crash 9 times out of 10
ldapmodify -x -D "cn=manager,dc=g189,dc=uniredemg,dc=com,dc=br" -w secret -f bug220724/opera.ldif
# Delete the entries and apply opera.ldif again to reproduce
ldapdelete -x -D "cn=manager,dc=g189,dc=uniredemg,dc=com,dc=br" -w secret uid=user1,ou=People,dc=g189,dc=uniredemg,dc=com,dc=br uid=user2,ou=People,dc=g189,dc=uniredemg,dc=com,dc=br
ldapmodify -x -D "cn=manager,dc=g189,dc=uniredemg,dc=com,dc=br" -w secret -f bug220724/opera.ldif
Here is how I reproduced the bug:
# Download and extract bug220724.tar.gz, then install the packages.
apt-get install slapd ldap-utils
# Copy the configuration
cp -r bug220724/ldap/schema /etc/ldap/
cp bug220724/ldap/slapd.conf /etc/ldap/
# Stop the service
/etc/init.d/slapd stop
# Generate the database
rm -rf /var/lib/ldap/*
slapadd -l bug220724/base.ldif
chown -R openldap:openldap /var/lib/ldap
# Run the deamon in foreground slapd.conf -d 256
/usr/sbin/slapd -g openldap -u openldap -f /etc/ldap/
# Then in another shell apply opera.ldif and you will get a crash 9 times out of 10 dc=g189, dc=uniredemg, dc=com, dc=br" -w secret -f bug220724/opera.ldif
ldapmodify -x -D "cn=manager,
# Delete the entries and apply opera.ldif again to reproduce dc=g189, dc=uniredemg, dc=com, dc=br" -w secret uid=user1, ou=People, dc=g189, dc=uniredemg, dc=com, dc=br uid=user2, ou=People, dc=g189, dc=uniredemg, dc=com, dc=br dc=g189, dc=uniredemg, dc=com, dc=br" -w secret -f bug220724/opera.ldif
ldapdelete -x -D "cn=manager,
ldapmodify -x -D "cn=manager,
Merci,
Michael