[GH-ISSUE #5] ldapsearch 32 no such object #2

Closed
opened 2026-02-27 16:47:36 +03:00 by kerem · 3 comments
Owner

Originally created by @ettoregia on GitHub (Oct 2, 2018).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/5

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

Originally created by @ettoregia on GitHub (Oct 2, 2018). Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/5 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
kerem closed this issue 2026-02-27 16:47:36 +03:00
Author
Owner

@rroemhild commented on GitHub (Oct 2, 2018):

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

<!-- gh-comment-id:426446504 --> @rroemhild commented on GitHub (Oct 2, 2018): 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`
Author
Owner

@ettoregia commented on GitHub (Oct 3, 2018):

Ok many thanks

<!-- gh-comment-id:426713956 --> @ettoregia commented on GitHub (Oct 3, 2018): Ok many thanks
Author
Owner

@rroemhild commented on GitHub (Oct 4, 2018):

Your welcome

<!-- gh-comment-id:426905491 --> @rroemhild commented on GitHub (Oct 4, 2018): Your welcome
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-test-openldap#2
No description provided.