LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-13-2010, 08:58 AM   #1
jlpeifer
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
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!!!
 
Old 09-13-2010, 09:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,230
Blog Entries: 1

Rep: Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085
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
 
Old 09-13-2010, 09:44 AM   #3
jlpeifer
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
(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.
 
Old 11-02-2010, 03:31 PM   #4
cg1717
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Lightbulb ldap bind: Invalid credentials(49)

Oops..wrong post

Last edited by cg1717; 11-02-2010 at 03:32 PM. Reason: Wrong post I was replying to...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldap_bind: Invalid credentials (49) pdrobe Linux - General 12 09-13-2012 02:41 AM
Ldap_bind: Invalid credentials olasamuel Linux - Newbie 1 10-28-2009 10:57 AM
ldap_bind: Invalid credentials (49) soni_silver17 Linux - Server 1 01-24-2009 01:47 PM
LDAP_BIND: Invalid Credentials rupesh_pulikool Linux - Software 0 02-01-2005 01:27 PM
ldap_bind:Invalid credentials chintone Linux - General 0 12-06-2002 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration