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