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

      01010011
      01100101
      01110010
      01101001
      01101111
      01110101
      01110011
      01000111
      01100101
      01100101
      01101011

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
HOST internalservername.mydomain.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.

Example queries:

Find members of the Helpdeskers group:
"(memberOf=CN=Helpdeskers,OU=Usergroups,DC=mydomain,DC=com)"

Find all defails for a login id called fflintstone:
"(sAMAccountName=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: 54.82.56.95