LDAP invalid DN

network16
network16 used Ask the Experts™
on
I am configuring LDAP in centos when i want to create base.ldif, it prompts me for a password. When i enter the password i get [


root@server6 migration]# ldapadd -x -W -D “cn=root,dc=shadow,dc=com” -f ./base.ldif
Enter LDAP Password:
ldap_bind: Invalid DN syntax (34)
        additional info: invalid DN
What is the problem, i am trying since 3 days can anybody help me and what should be my domain name, is it the website address domain name.

Thanks in advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Hi,

How about:

ldapadd -host yourhost -x -W -D “cn=root,dc=shadow,dc=com” -f ./base.ldif

or

ldapadd -x -W -D “cn=root” -f ./base.ldif

Good Luck,

- gurutc
Commented:
No, it is probably NOT your web site address.

You maybe able to do an anonymous bind by:

 ldapsearch -x -b '' -s one '(objectclass=*)' '+' '*'

You should get a list of the "top" level structure that may help you find it.

Might also try:
 ldapsearch -x -b '' -s base '(objectclass=*)' 'namingContexts'

Will show you the partitions that should provide a clue.

If it is openLDAP try something like:
Be sure to replace <MY-DOMAIN> and <COM> with the appropriate domain ...
  ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f example.ldif

-jim

Commented:
Or you could try JxBrowser which will allow you to check the contents out (possibly anonymously)

Commented:
Did you try to use "cn=Directory Manager" for binding rather than "cn=root, dc=..." - In other words, are you sure that root has sufficient access inside LDAP service?

HTH,

Author

Commented:
s

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial