ldapsearch -A locked my computer up and upchucked about 3000 unnecessary lines (not one clearly had the information I was looking for). Is their a quick summary search that will upchuck your ou, dn, dn etc in a format under 100 lines in response?

  • Do you mean you just want a list of all the supported parameters? – Andrew Schulman Sep 22 '14 at 5:48
  • @Andrew Schulman I am trying to get the configured key values for ou, dn etc.. Just a summary. – bro Sep 22 '14 at 21:10
  • 1
    It's not clear what you mean by "key values". Running "ldapsearch -A" will return all attributes of all objects that your query can access. Do you want returned a set of commonly useful attributes from all objects? Or all available attributes on a specific object? – Andy Sep 27 '14 at 8:53
ldapsearch -x -ZZ -h localhost -D "cn=admin,o=tree" -b o=tree mail |grep mail:

will provide you with just email addresses. You can get as detailed as you want.

| improve this answer | |

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.