LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 02-15-2011, 03:28 AM   #1
csravi88
LQ Newbie
 
Registered: Jun 2010
Distribution: RHEL, CentOS, Debian, AIX
Posts: 15

Rep: Reputation: 0
Lightbulb getting error while adding account in LDAP "ldap_bind: Invalid credentials (49)"


Hi, I am setting a ldap server by reffering (http://www.howtoforge.com/linux_open..._server_client) and getting following error in step #12

[root@ldap ~]# ldapadd -x -D "cn=Manager,dc=adminmart,dc=com" -W -f /etc/openldap/adminmart.com.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

Please suggest !!!. I am using RHEL 5.5
 
Old 02-15-2011, 03:56 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,711
Blog Entries: 8

Rep: Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627
Hi,

Which password did you create in steps 3?

The mentioned "password" in those steps is the encrypted password, the actual password isn't given. You need to create a password yourself in step 3 and paste the encrypted string that is returned into slapd.conf (step 4). Do remember to restart (step 5).

Hope this helps.
 
Old 02-16-2011, 03:49 AM   #3
csravi88
LQ Newbie
 
Registered: Jun 2010
Distribution: RHEL, CentOS, Debian, AIX
Posts: 15

Original Poster
Rep: Reputation: 0
Hi all,

Same issue, Any clue..
 
Old 02-16-2011, 04:25 AM   #4
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Quote:
Step #4. Update /etc/openldap/slapd.conf for the root password

[root@ldap ~]# vi /etc/openldap/slapd.conf

#68 database bdb
#69 suffix "dc=adminmart,dc=com"
#70 rootdn "cn=Manager,dc=adminmart,dc=com"
#71 rootpw {SSHA}cWB1VzxDXZLf6F4pwvyNvApBQ8G/DltW
Please post this section of your slapd.conf file.
 
Old 02-16-2011, 11:57 PM   #5
csravi88
LQ Newbie
 
Registered: Jun 2010
Distribution: RHEL, CentOS, Debian, AIX
Posts: 15

Original Poster
Rep: Reputation: 0
Talking

Hi,

Problem is solved..by googling..

It was configuration error in slapd.conf. The lines must be alinged left in file..

Ravi
 
  


Reply

Tags
openldap, redhat


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "ldap_bind: Invalid credentials (49)" while trying to setup openldap dfinn Linux - Server 12 03-22-2011 01:12 PM
ldap 2.4 rhel6 problem with openldap ldap_bind: Invalid credentials (49) dshivji Linux - Server 3 12-04-2010 03:23 AM
LEARNING LDAP -> ldap_bind: Invalid Credentials (49) peterson.julia Linux - Newbie 1 09-19-2010 11:28 PM
Ldap error "ldap_sasl_interactive_bind_s: Invalid credentials (49)" knockout_artist Linux - Newbie 1 10-30-2009 03:56 PM
ldap: ldap_bind: Invalid credentials (49) (using user migrated with padl) eantoranz Linux - Software 1 09-05-2008 09:52 AM


All times are GMT -5. The time now is 11:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration