LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   ldap_bind: Invalid credentials (49) (http://www.linuxquestions.org/questions/linux-server-73/ldap_bind-invalid-credentials-49-a-831885/)

jlpeifer 09-13-2010 09:58 AM

ldap_bind: Invalid credentials (49)
 
I'm just stumped and could use some seasoned eyes and minds to review why I'm getting "ldap_bind: Invalid credentials (49)" error when I attempt ldapmodify -v -x -D "cn=someuser,dc=iqonq,dc=com" -W

Prior to entering the above I used slappasswd to create a new password and entered it into my /etc/openldap/slapd.conf file. Here's an example of my slapd.conf (that's not the real rootpw):
Code:

# Allow LDAPv2 client connections.  This is NOT the default.
allow bind_v2

pidfile        /var/run/slapd.pid
argsfile        /var/run/slapd.args

access to dn.base=""
        by * read

access to attr=sambaPasswordHistory
        by self write
        by * auth

access to attr=sambaLMPassword
        by self write
        by * auth

access to attr=sambaNTPassword
        by self write
        by * auth

access to attr=userPassword
        by self write
        by * auth

access to attr=shadowLastChange
        by self write
        by * auth

access to *
        by * read


#######################################################################
# BDB database definitions
#######################################################################

database        bdb
suffix          "dc=iqonq,dc=com"
rootdn          "cn=Manager,dc=iqonq,dc=com"

# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          {SSHA}95WxN9j4BwXpxqavygLzjb8quzrfC87J

# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory      /var/lib/ldap

# Indices to maintain
index  objectClass    eq

After entering the SSHA password into the slapd.conf file I restart the ldap service:
Code:

service ldap restart
Which returns:
Code:

Stopping slapd:                                            [  OK  ]
Checking configuration files for slapd:  config file testing succeeded
                                                          [  OK  ]
Starting slapd:                                            [  OK  ]

Finally at this point I issue the command
Code:

ldapmodify -v -x -D "cn=someuser,dc=iqonq,dc=com" -W
and enter the password I just defined when I ran the slappasswd command. What I get in return is:
Code:

ldap_bind: Invalid credentials (49)
This is driving me crazy! Can someone help me pick through this?

Many advTHANKSance!!!

bathory 09-13-2010 10:08 AM

Hi,

Quote:

I attempt ldapmodify -v -x -D "cn=someuser,dc=iqonq,dc=com" -W
According to slapd.conf rootdn is "cn=Manager,dc=iqonq,dc=com".
So change rootdn in ldapmodify

Regards

jlpeifer 09-13-2010 10:44 AM

(insert sound of deflated Linux and LDAP newbie banging head on wall here)

THANK YOU bathory!

I was under the under-educated assumption that the username after "cn=" was supposed to be the name of the user I was trying to modify.

cg1717 11-02-2010 04:31 PM

ldap bind: Invalid credentials(49)
 
Oops..wrong post


All times are GMT -5. The time now is 01:11 PM.