ldapsearch UID and GID from list
I'm having a bit of trouble getting the syntax correct for the command below:
ldapsearch -v -h enterprise.server.com -xLLL -D "firstname.lastname@example.org" -W -b "OU=Employees,OU=People,DC=server,DC=com" uidNumber gidNumber -f list.txt > list.out.txt
The above command works, it prompts me for my password after I hit enter, but it seems to ignore the "list.txt" option I specify at the end and produces a list of "every" user in our AD database. All I want is for the command view the list.txt file and produce those UIDs and GIDs. Any help is appreciated.