Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LDAP Query via Windows CMD

Everywhere I find solutions for how a LDAP Query has to look like in Windows CMD. For instance:

Example for a LDAP Query in commandline-programm:
ldapsearch -h ldap.acme.com -p 389 -s sub -D "cn=Directory Manager,o=acme" -W -b "ou=personen,o=acme" "(&(mail=joe)(c=germany))" mail*

It is not a problem for me to adjust such a query to my needs, but none of the common help pages tells you how to make the ldap commands work. Everytime I am trying to execute a ldap command, comandline only response that the command is not known.

Please tell what I have to download or where I have to navigate to make this command work.

Thanks

like image 767
mn_dc466 Avatar asked Apr 12 '17 08:04

mn_dc466


1 Answers

Ldapsearch.exe is a tool that was included with Windows 2000, it isn't used anymore, and was superseded by dsquery in Server 2003. However if you are querying Active Directory, you should just use the Active Directory PowerShell Module instead, which is included with the Remote Server Admin Tools.

like image 172
CodedBeard Avatar answered Sep 28 '22 01:09

CodedBeard