Hi,all
I want to get fields of Company and Department of Active Directory with ldapsearch command.
I tried following search command.
| ldapsearch search="(&(objectclass=user)(!(objectClass=computer)))"
I got some fields (e.g mail,telephoneNumber,sAMAccountName), but I didn't get fields of Company and Department.
Can I get fields of Company and Department with ldapsearch command?
thank you for your help.
jcoates ♦,Thank you for your reply.
It seem I can't get fields of Company and Department but I can get some fields.
I want to get fields of Company and Department.