I keep getting an invalid syntax error when trying to create a user in OpenLDAP (CentOS 7).
This is a new install of OpenLDAP for testing purposes.
So far I've managed to create a group called "Lab Staff", and now I'm trying to add a user to it
Here is the LDIF file:
dn: uid=lsuarez,ou=Lab Staff,dc=sftest,dc=net
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Luis Suarez
sn: Suarez
givenname: Luis
uid: lsuarez
ou: Lab Staff
Then I try to add it as follows:
ldapadd -x -D "cn=Admin,dc=sftest,dc=net" -W -f /tmp/data.ldif
Enter LDAP Password:
adding new entry "uid=lsuarez,ou=Lab Staff,dc=sftest,dc=net"
I get the error message:
ldap_add: Invalid syntax (21)
additional info: objectclass: value #3 invalid per syntax
That looks to me like it doesn't like inetOrgPerson
, but I have no idea what I'm doing wrong.