Advertisement
Guest User

Untitled

a guest
Dec 17th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. uid=cn <mail>
  2.  
  3. jdoe=John Doe <john.doe@company.com>
  4. jdoe1=Jane Doe <jane.doe@company.com>
  5. ...
  6.  
  7. echo `ldapsearch -x -h 127.0.0.1 -b "dc=company,dc=com" uid=* cn mail` >> ldap-users.txt
  8.  
  9. # extended LDIF # # LDAPv3 # base <dc=company,dc=com> with scope subtree # filter: uid=* # requesting: cn mail # # jdoe, Special Users, company.com dn: uid=jdoe,ou=Special Users,dc=company,dc=com cn: John Doe User mail: john.doe@company.com # jdoe1, People, company.com dn: uid=jdoe1,ou=People,dc=company,dc=com cn: Jane Doe mail: jane.doe@company.com # ....... # search result search: 2 result: 0 Success # numResponses: 1387 # numEntries: 1386
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement