Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ldap_bind: Invalid credentials (49) again

Tags:

openldap

I have searched several posting on this message and I am still getting the error when I attempt to do an "ldapsearch"

I have changed the slapd.conf to use a plain-text password and I am still getting the error. I have also made sure that there are no blank spaces in the file. The log file shows and iptables is turned off. I have attempted to follow the LDAP setup from

"http://www.itmanx.com/kb/centos63-openldap-phpldapadmin".  

conn=1001 fd=15 ACCEPT from IP=[::1]:54486 (IP=[::]:389)
conn=1001 op=0 BIND dn="cn=Manager,dc=domain,dc=local,dc=pt" method=128
conn=1001 op=0 RESULT tag=97 err=49 text=
conn=1001 fd=15 closed (connection lost)

my server is running Centos 6.4 64.

below are the commands I am using

"ldapsearch -x -D cn=Manager,dc=domain,dc=local,dc=pt -w abc"

my slapd.conf file

database        bdb
suffix          "dc=domain,dc=local"
checkpoint      1024 15
rootdn          "cn=Manager,dc=domain,dc=local"
rootpw                  abc
like image 787
user2236794 Avatar asked Sep 12 '25 02:09

user2236794


1 Answers

In the search you try to bind as:

cn=Manager,dc=domain,dc=local,dc=pt

but in the config the rootdn is:

cn=Manager,dc=domain,dc=local

This is of course "an invalid credential".

like image 74
tetra Avatar answered Sep 16 '25 10:09

tetra