Hi,
I am running openldap-2.0.27 on CentOS 3.x. The database directory was
already existing - I had a machine die and I copied over the directory,
edited slapd.conf and started openldap. LDAP is being used successfully
by Courier's authlib for authentication. Life was good.
Now I'm trying to get another app working with openldap and a particular
search is failing, and it doesn't seem to make sense to me.
I've tried this search using ldapsearch:
"(&(objectClass=posixAccount)(uid=username))" and it returns zero
results. However, just "(uid=username)" returns the correct result.
Even just "(objectClass=posixAccount)" returns zilch. However,
"(objectClass=person)" returns all the accounts in ldap and
"(&(objectClass=person)(uid=username))" returns the correct result.
So, why is "(objectClass=posixAccount)" not working? All the accounts
have objectClass: posixAccount. Here is an example of the ldif for one of
the accounts: