Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

ldapsearch UID and GID from with -f list option

ldapsearch UID and GID from with -f list option

ldapsearch UID and GID from with -f list option

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close