From Bugzilla Helper: User-Agent: Mozilla/4.78 [en] (Windows NT 5.0; U) Description of problem: After running slapadd on an empty /var/lib/ldap, all searches fail with 32 no such object. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. service ldap stop 2. slapindex Do I need the -f /etc/openldap/slapd.conf here? Or did you compile that in? 3. slapcat > foo.ldif 4. mv /var/lib/ldap /var/lib/ldap.old 5. mkdir /var/lib/ldap 6. chown ldap:ldap /var/lib/ldap 7. chmod 700 /var/lib/ldap Do I need to start and stop the server here to fill in some items? 8. slapadd -c < foo.ldif 9. slapindex 10. service ldap start 11. ldapsearch -x 'uid=jpdalbec' Actual Results: 32 no such object Expected Results: 0 success and a listing of my record Additional info: I wanted to rebuild the database because some object classes I added are not indexing correctly. If I do a search on '(&(uid=...)(objectClass=eduPerson))' I get no results for some uids even though I can see the object class in the listing of their record.
Sorry, I forgot the first rule of *n*x systems administration: when in doubt, it's a permissions problem. I fixed my original problem with chown -R ldap:ldap /var/lib/ldap and another slapindex.