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

RE: Active Directory

If you have multiple domain controllers and there are admins making changes
to one of them, they won't show up on the others until replication has
occurred between the DC's.  This is a shell script I use to search against
AD and it works consistently every time (unless of course someone changes
something on another DC and it hasn't replicated yet :) ).

ldapsearch -LLL -W -h $2 -D "cn=someone,cn=users,dc=my,dc=com"
-b'dc=my,dc=com' $1

Then I run the script like this:


The search you want below would be run like this:

./ldp '(&(cn=*)(objectclass=*))' eng2k.uwaterloo.ca

This script is how I check to see if a Win2K user's UNIX attributes are
correct for logging in to our Linux box.

Hope this helps

Andrew Rechenberg
Network Team, Sherman Financial Group

-----Original Message-----
From: Erick [mailto:erick@dark.uwaterloo.ca]
Sent: Friday, May 25, 2001 11:54 AM
To: ldap
Subject: Active Directory

I would like to use the ldapsearch program against a Windows 2000 active

Using UMich's ldapsearch, the following command returned *something*
but only sometimes, running it 3 times in successsion might have
returned results once if I was lucky:

 ldapsearch -v -h eng2k.uwaterloo.ca -s sub -b \
    dc=nexus,dc=uwaterloo,dc=ca  \

With the latest OpenLDAP downloaded today, I get no results at all. Well,
at least my results are consistent.

Any suggestions?