|Linux in a Windows World|
|LDAP queries against AD|
|Tested on Windows 2003 AD...
To perform an LDAP search from Linux against a Windows AD host, install the 'ldap-utils' package and edit the ldap configuration file '/etc/ldap/ldap.conf'.
Add (or change) the following lines:
BASE dc=mydomain, dc=com
Save and quit the editor. Now, enter queries as follows:
ldapsearch -x -W -D "cn=Administrator Name,ou=Users,dc=mydomain,dc=com" -LLL "(your query here)"
The 'Administrator Name' has to be an account name that has lookup rights in the AD.
Find members of the Helpdeskers group:
Find all defails for a login id called fflintstone:
|Found this script/snippet useful? Please consider buying me a beer - or something else useful..|
|Created on: 25 May 2009, 18:12h|
By: Cas Mollien
Last modified on: