Mollien dot Net is IPv6 Enabled!

   My About.Me page
   View my profile on LinkedIn
   Follow me on Twitter
    View my Facebook profile   View my Hyves profile   View my YouTube favorites and uploads


IPv6 Certification Badge for Cas Mollien

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
URI ldap://internalservername

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.

Example queries:

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..

Terug naar Mollien Dot Net

Terug naar Mollien Dot Net

Terug naar Mollien Dot Net
Total Hits: 1
Unique Visitors: 1
Page Impressions : 1
Remote address: