0

I am trying to add my users into my LDAP. I have created a file called users.ldif

When I execute the command it throws the following error message please can you help. The user2.ldif has the following names

Script

USER ENTRY
dn: cn=Jack Wallen,ou=user,dc=dc=googleman,dc=local
cn: Jack Jones
objectClass: person
sn: Wallen USER ENTRY
dn: cn=Sheldon Cooper,ou=user,dc=dc=googleman,dc=local
cn: Sheldon John
objectClass: person
sn: Cooper
 USER ENTRY
dn: cn=Leonard Hofstadter,ou=user,dc=dc=googleman,dc=local
cn: Leonard James
objectClass: person
sn: Hofstadter Command executed I executed this command in my Mac command line after ssh into my linux machine ldapadd -H ldap://127.0.0.1 -D "cn=admin,dc=googleman,dc=local" -w root -f "user2.ldif"

Error adding new entry "cn=Jack Jones,ou=user,dc=googleman,dc=local
" ldap_add: Invalid DN syntax (34) additional info: invalid DN

I am running Ubuntu

Any ideas

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.