Search for a particular user:
ldapsearch -LLLx "uid=myuser"If your LDAP database is giant, you might want to limit that search to just the people tree:
ldapsearch -LLLx -b ou=people,dc=myorg,dc=com "uid=myuser"Find a netgroup:
ldapsearch -LLLx -b ou=netgroup,dc=myorg,dc=com "cn=mymachine.myorg.com"Wildcards also work:
ldapsearch -LLLx -b ou=netgroup,dc=myorg,dc=com "cn=*fred*.myorg.com"Regular group:
ldapsearch -LLLx -b ou=group,dc=myorg,dc=com "cn=sysadmins"
2 comments:
For more information on ldapsearch, see Using ldapsearch.
Thanks, linked in the post.
Post a Comment