LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   OPENLDAP Invalid Credentials Issue (https://www.linuxquestions.org/questions/linux-newbie-8/openldap-invalid-credentials-issue-4175463130/)

yashfire007 05-23-2013 07:09 AM

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....

TB0ne 05-23-2013 09:06 AM

Quote:

Originally Posted by yashfire007 (Post 4957170)
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.


All times are GMT -5. The time now is 01:27 AM.