5

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?

6

"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.

  • 2
    Thanks! I was totally thrown of by the search ... result 0. Interpreting that it actually deliverd zero results. – Martijn Burger Jun 4 '14 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.