Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ldapsearch UID and GID from with -f list option

Status
Not open for further replies.

Charliemp3

IS-IT--Management
Jan 19, 2017
1
US
I'm a bit lost with this command, and would really appreciate some direction:

I tried using the following command:

ldapsearch -v -h enterprise.server.com -xLLL -D "validuser@server.com" -W -b "OU=Employees,OU=People,DC=server,DC=com" uidNumber gidNumber -f list.txt > list.out.txt

This command ignores the list and produces an output with pretty much everyone in the organization. The list I'm specifying has only a few users.

Ultimately I don't care how this is done, I need to gather the UIDs of 500 plus users and I know no other way of doing it. The above command works great if I specify a single user account, but not with a list.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top