LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2013, 07:09 AM   #1
yashfire007
Member
 
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 79

Rep: Reputation: Disabled
Unhappy OPENLDAP Invalid Credentials Issue


Hai to all,

I have installed openldap-2.4.23 in my RHEL 6.4 machine. While tried to add users in ldapdirectory am facing the below mentioned issues.

[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=yourdomain,dc=com” -f users.ldif -w secret
ldap_bind: Invalid DN syntax (34)
additional info: invalid DN



[root@ip-10-205-21-76 openldap]# ldapadd -x -D "cn=Manager,dc=testdomain1,dc=com" -f users.ldif -W
Enter LDAP Password:
ldap_bind: Invalid credentials (49)


[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=testdomain1,dc=com” -f users.ldif -w secret
ldap_bind: Invalid DN syntax (34)
additional info: invalid DN


[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=testdomain1,dc=com” -f users.ldif -W
Enter LDAP Password:
ldap_bind: Invalid DN syntax (34)
additional info: invalid DN



#vim /etc/openldap/slapd.d/cn=config/olcDatabase={2}bdb.ldif

olcRootDN: cn=Manager,dc=testdomain1,c=com
olcRootPW: {SHA}5en6G6MezRroT3XKqkdPOmY/BfQ=

#vim /etc/openldap/ldap.conf


TLS_CACERTDIR /etc/openldap/cacerts


BASE dc=testdomain1,dc=com
URI ldap://10.205.21.76/
~



I have followed the below link.. Please help me to resolve this issue..
http://blog.domb.net/?p=74


I have set the password to secret then also am facing the problem..
[root@ip-10-205-21-76 openldap]# slappasswd -s secret

#vim /etc/openldap/slapd.d/cn=config/olcDatabase={2}bdb.ldif

olcRootDN: cn=Manager,dc=testdomain1,c=com
olcRootPW: secret

[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=testdomain1,dc=com” -f users.ldif -W
Enter LDAP Password:
ldap_bind: Invalid DN syntax (34)
additional info: invalid DN

[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=testdomain1,dc=com” -f users.ldif -w secret
ldap_bind: Invalid DN syntax (34)
additional info: invalid DN


Please help me....

Last edited by yashfire007; 05-23-2013 at 07:23 AM.
 
Old 05-23-2013, 09:06 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by yashfire007 View Post
Hai to all,
I have installed openldap-2.4.23 in my RHEL 6.4 machine. While tried to add users in ldapdirectory am facing the below mentioned issues.

[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=yourdomain,dc=com” -f users.ldif -w secret
ldap_bind: Invalid DN syntax (34) additional info: invalid DN

[root@ip-10-205-21-76 openldap]# ldapadd -x -D "cn=Manager,dc=testdomain1,dc=com" -f users.ldif -W
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=testdomain1,dc=com” -f users.ldif -w secret
ldap_bind: Invalid DN syntax (34) additional info: invalid DN


[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=testdomain1,dc=com” -f users.ldif -W
Enter LDAP Password:
ldap_bind: Invalid DN syntax (34) additional info: invalid DN

#vim /etc/openldap/slapd.d/cn=config/olcDatabase={2}bdb.ldif
olcRootDN: cn=Manager,dc=testdomain1,c=com
olcRootPW: {SHA}5en6G6MezRroT3XKqkdPOmY/BfQ=

#vim /etc/openldap/ldap.conf
TLS_CACERTDIR /etc/openldap/cacerts
BASE dc=testdomain1,dc=com
URI ldap://10.205.21.76/

I have followed the below link..Please help me to resolve this issue..
http://blog.domb.net/?p=74
That guide is for MIGRATION to LDAP...and if you DID follow it, you obviously have omitted several steps, since what you've posted doesn't match that guide.
Quote:
I have set the password to secret then also am facing the problem..
[root@ip-10-205-21-76 openldap]# slappasswd -s secret

#vim /etc/openldap/slapd.d/cn=config/olcDatabase={2}bdb.ldif
olcRootDN: cn=Manager,dc=testdomain1,c=com
olcRootPW: secret

[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=testdomain1,dc=com” -f users.ldif -W
Enter LDAP Password:
dap_bind: Invalid DN syntax (34) additional info: invalid DN
[root@ip-10-205-21-76 openldap]# ldapadd -x -D ”cn=Manager,dc=testdomain1,dc=com” -f users.ldif -w secret
ldap_bind: Invalid DN syntax (34) additional info: invalid DN
Please help me....
If you read/understood the guide, you'd see you were missing steps. And did you try to look up installation (not migration) guides for RHEL6?

Since you're using RHEL, you can call Red Hat support, since you're paying for RHEL, right??? And did you try their knowledgebase?
https://access.redhat.com/site/docum...y_Servers.html

...read ANY of the very simple how-to guides you can easily find?
http://spectlog.com/content/Minimal_...es_and_details
https://www.soljerome.com/blog/2012/...ldap-on-rhel6/

Again, you don't have things configured correctly. Read the instructions and follow them.
 
  


Reply



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
[SOLVED] ldap_bind: Invalid credentials (49) when trying OpenLDAP query Sma11T0wnITGuy Linux - Server 19 08-17-2016 06:12 PM
[SOLVED] openldap ldap_bind: Invalid credentials (49) sanjaydelhi Linux - Newbie 9 03-16-2011 09:29 AM
[SOLVED] openldap setup Invalid credentials error (49) vigilandy Linux - Server 9 10-15-2010 09:33 AM
ldap_bind: Invalid credentials (49) on OpenLDAP server gergaholic Linux - Server 7 11-08-2007 09:03 AM
ldap_bind: Invalid credentials (49) on OpenLDAP server gergaholic Fedora 2 11-05-2007 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 PM.

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