LinuxQuestions.org
Register a domain and help support LQ
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 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
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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
 
Old 10-14-2013, 02:08 AM   #6
boby.kumar
Member
 
Registered: Mar 2013
Posts: 75

Rep: Reputation: Disabled
Hi Ravi
I am little confused here for changes.
can you please share what changes you made in slapd.conf file?

Last edited by boby.kumar; 10-14-2013 at 02:10 AM.
 
Old 10-14-2013, 07:43 AM   #7
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,776

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by boby.kumar View Post
Hi Ravi
I am little confused here for changes.
can you please share what changes you made in slapd.conf file?
This thread has been closed for TWO YEARS now. And whatever changes they made will probably NOT work for you, since your environments are different. And did you read what they posted?
Quote:
Originally Posted by csravi88
The lines must be alinged left in file..
It TELLS YOU what to do, and even tells you what to look for in Google for a similar solution, which is where they found it.
 
1 members found this post helpful.
  


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


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:18 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 Google+: linuxquestions
Open Source Consulting | Domain Registration