What does ldapsearch response mean?

6

1

I created a ldap directory with a number of users and groups. When I query this directory from a remote server with:

ldapsearch -H ldap://ldap.myserver.net/ -x -vvvvvvv -b dc=myserver,dc=net -D cn=admin,dc=myserver,dc=net -W

I get all objects in the directory returned. The result finishes with the following:

# search result
search: 2
result: 0 Success

# numResponses: 85
# numEntries: 84

What do these numbers mean exactly?

Martijn Burger

Posted 2014-06-04T14:23:22.233

Reputation: 278

Answers

7

"search: 2" 2 is the messageID of the search operation.

"result: 0 Success" 0 is the error code. Here is a list of the others http://wiki.servicenow.com/index.php?title=LDAP_Error_Codes

"numResponses: 85" 85 is the number of pieces of information returned including the meta information.

"numEntries: 84" 84 is the total number of entries that the search returned.

Val

Posted 2014-06-04T14:23:22.233

Reputation: 196

3Thanks! I was totally thrown of by the search ... result 0. Interpreting that it actually deliverd zero results. – Martijn Burger – 2014-06-04T15:17:30.170