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

RE: Authenticating against Active Directory

Title: RE: Authenticating against Active Directory

I've had good luck authenticating against ADS like this:

ldapsearch -x -W -D "user@domain"
where user is a principal name and domain is whatever your domain is,
but might not be what you expect.  Check out your ADSI settings to
see what yours is.

I can't say exactly why this works, as obviously that isn't a DN, but it
does seem to work.

-----Original Message-----
From: Ryan Beckes [mailto:niespam@yahoo.com]
Sent: Tuesday, November 20, 2001 1:23 PM
To: openldap-software@OpenLDAP.org
Subject: Authenticating against Active Directory

I'm new to LDAP, so please forgive the simplicity of
this problem, but I am trying to do LDAP queries using
ldapsearch against another server. If I do this.

ldapsearch -h mydomain.theirdomain.com -x -v -b
'dc=mydomain,dc=theirdomain,dc=com' '(objectclass=*)'

It seems I get the root directory of the schema, which
is progress, but I need to get user information, so I
tried this.

ldapsearch -h mydomain.theirdomain.com -x -v -b

but I get no results. I probably have to Authenticate
against the server, but I've tried a number of
different methods (e.g. -W & -U Administrator &
others) to no avail. How do I authenticate against the

Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.