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

Re: ldapsearch with simple bind to active directory

Samuel asked:

"Does Active Directory enable simple binds with clear Passwords ?"

The answer is yes.  I actually occassionally connect this way as Domain
Admin, exposing my password clear text for anyone to sniff until we get
IPSec working.

Is the name on the account actually "DLYRES" or is that the logon name
(sAMAccountName)?  If you set up your AD name to be "Dlyra Resanault", you
need to authenticate as:

"cn=Dlyra Resanault,cn=Users,dc=diwan,dc=fr "

I highly recommend installing freeware LDAPBrowser by Jarek Gawor (don't
confuse it with commercial products with the same name).  Do your bind
testing with it first, and once you get that working, try ldapsearch and

Link to LDAPBrowser:


----- Original Message -----
From: "Samuel GAUTIER" <s.gautier@unidirect.fr>
To: <openldap-software@OpenLDAP.org>
Sent: Wednesday, June 05, 2002 4:13 AM
Subject: ldapsearch with simple bind to active directory

> Does Active Directory enable simple binds with clear Passwords ?
> I would like to authenticate the squid users through the Active
> Directory using the LDAP module which works for me with Openldap
> I don't want to perform an anonymous bind, so i use the administrator
> account (DLYRES) as binddn but the bind fails :
> samlaptop:/opt/squidldap/libexec/squid # ./squid_ldap_auth -p -R -b
> dc=diwan,dc=fr -Dcn=DLYRES,cn=Users,dc=diwan,dc=fr -w diwan316975 -f
> userPrincipalName=%s </root/dev/squid_auth_nds/test.no
> squid_ldap_auth: WARNING, could not bind to binddn 'Invalid
> credentials'
> So I tryed with a simple ldapsearch :
> samlaptop:/root # ldapsearch -x -h -D
> "CN=DLYRES,CN=Users,DC=societe,DC=fr" -b "DC=societe,DC=fr" -W
> objectclass=*
> Enter LDAP Password:
> ldap_bind: Invalid credentials
>         additional info: 80090308: LdapErr: DSID-0C090290, comment:
> AcceptSecurityContext
> error, data 525, v893
> samlaptop:/root #
> Any help would be apreciated !!!
> thanks

> sam