Operating System - Linux
1823986 Members
4238 Online
109667 Solutions
New Discussion юеВ

LDAP : Invalid Credential

 
Sudipta Biswas
Occasional Advisor

LDAP : Invalid Credential

I installed RedHat Enterprice Linux 3.0 ES and configure openldap on that server but when I use "ldapsearch" command its show me a massage Invalid Credential.
Plz Help Me.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: LDAP : Invalid Credential

Shalom Sudipta,

This usually means that you are not providing proper authentication to the LDAP server you are trying to query.

Please post the command you are using and check if you are doing the ldap search against a local ldap database or an external server. If its external, make sure you have a valid password.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sudipta Biswas
Occasional Advisor

Re: LDAP : Invalid Credential

linux# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
when i apply this command it will run fine but after

linux# ldapadd -x -D "cn=root,dc=simplex,dc=com" -W -f simplex.ldif

after apply that commamd it will ask for password. Now my question is that what password I should pass at here.
After giving my root password at here it gives me "Invalid Credential"

My another query is that for ldap DNS configuration is essential or not and if I configure DNS and LDAP on the same machine is it will work and what directive I have to use on slapd.conf file or named.conf file

My simplex.ldif configuration is

dc: dc=simplex,dc=com
objectclass: dcObject
objectclass: organization
o: Simplex
dc: simplex

dn: cn=root,dc=simplx,dc=com
objectclass: organizationalRole
cn: root

thats all my friend.

ThnX for your reaply.
Andrea Rossi
Frequent Advisor

Re: LDAP : Invalid Credential

the password you have to provide is written in the slapd.conf "rootpw=.." entry, correspondinfg to the "rootdn=" account dn. you can change it, after crypting it with the /usr/sbin/slappasswd command.