ldapsearch 32 no such object
ettoregia opened this issue · 3 comments
Hi there, thanks for this repo.
I'm trying to execute the below ldapsearch but I always get 32 No such Result, any help would be really appreciated.
ldapsearch -x -h localhost -p 389 -D "cn=Hubert J. Farnsworth,ou=people,dc=planetexpress,dc=com" -w "professor" -b "dc=example,dc=com" -s sub '(objectClass=*)' 'givenName=*'
LDAPv3
base <dc=example,dc=com> with scope subtree
filter: (objectClass=)
requesting: givenName=
search result
search: 2
result: 32 No such object
The last argument is for the attribute you wan't get back from the search result, so it should be only givenName
and the search base is dc=planetexpress,dc=com
or for only people ou=people,dc=planetexpress,dc=com
.
ldapsearch -x -h localhost -p 389 -D "cn=Hubert J. Farnsworth,ou=people,dc=planetexpress,dc=com" -w "professor" -b "dc=planetexpress,dc=com" -s sub '(objectClass=*)' givenName
Ok many thanks
Your welcome