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

Re: ldapsearch with password always returns invalid credentials



Eh, you're probably missing bind dn (username) to log on

-D "cn=adminUser,ou=people,...,dc=company" -w secretpassword 

regards,
P.

On Wed, 5 Aug 2009, Subbarao Karanam wrote:

> hello,
> When I did a ldapsearch always gives me "Invalid credentials Error". Really fed up about this as I'm not getting any help..
> 
> When I did  a ldapsearch with 
> 
> ldapsearch -x -h crmsldap.agilent -p 389 -s base -b 'ou=people,dc=crmsldap,dc=company' "(&(objectClass=*))"
> # extended LDIF
> #
> # LDAPv3
> # base <ou=people,dc=crmsldap,dc=company> with scope base
> # filter: (&(objectClass=*))
> # requesting: ALL
> #
> 
> # people, crmsldap.agilent
> dn: ou=people,dc=crmsldap,dc=company
> objectClass: top
> objectClass: organizationalUnit
> ou: people
> 
> # search result
> search: 2
> result: 0 Success
> 
> # numResponses: 2
> # numEntries: 1
> 
> Second Command
> 

> 

> ldapsearch -x -h crmsldap.agilent -p 389 -s base -b 'ou=people,dc=crmsldap,dc=company "(&(objectClass=*))" -w admin +
> ldap_bind: Invalid credentials (49)
> 
> 
> Can you please help me where is the problem...Attached is the slapd.conf, my users ldif file...
> 
> Thanks
> Subbarao
> 
> 
> 
>