Ldapsearch query for own entry returns "no such object", when executed by normal LDAP user.
Issue
Per below ACL, ldap user's should be able to query his own entry, but not other users.
access to attrs=userPassword
by anonymous auth
by self write
by * none
access to dn.subtree="ou=People,dc=example,dc=com"
by self read
by * none
However, it returns "no such object" error when executed by user itself.
ldapsearch -p 389 -h xx.xx.xx.xx -D "uid=user1,ou=people,dc=example,dc=com" -b "ou=people,dc=example,dc=com" uid=user1
Environment
- Red Hat Enterprise Linux
- OpenLDAP
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
