[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Retrieving information from Active Directory



To use LDAP search against a LDAP directory, you have to do the following:

If your active directory name is domain.test.com then

ldapsearch -W -D "cn=administrator,cn=users,dc=domain,dc=test,dc=com" -x
-h <ip of ad box> -b "cn=users,dc=nexus2k,dc=psynch,dc=com"
"(&(objectCategory=person)(objectClass=user)(sAMAccountName=*))"

That should list all of the users.

Aaron


Quoting Stephen Carville <stephen@totalflood.com>:

> I am settng up a mail server and trying to use openldap so I can
> create a public addressbook.  I hope to populate this with informatin
> gleaned from Active Directory but, so far, I haven't been able to get
> anything useful.
> 
> So how I can get the user information out of active directory?  I have
> 
> searched Google and found references to using ldapsearch but none of 
> the instruction worked.  I am really new to ldap so I may be 
> overlooking the obvious.
> 
> I am running version 2.0.11 on Redhat 7.2.
> 
> -- 
> -- Stephen Carville
> UNIX and Network Administrator
> DPSI (formerly Ace USA Flood Services)
> 310-342-3602
> stephen@totalflood.com
> 
> 




-----------------------------------------------------------------
Secure Webmail sent through: Echostar Solutions - www.echostar.ca