[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: problems on ldap:add: Invalid syntax (21)

> i'm trying to add user.ldif and i keep getting this error:
> adding new entry "uid=jrojas,ou=argentina,dc=example,dc=com"
> ldap_add: Invalid syntax (21)
>         additional info: objectclass: value #2 invalid per syntax

I don't think your DSA knows what "posixAccount" is.  Make sure the
schema file is included.

> this is the user.ldif content:
> dn: uid=jrojas,ou=argentina,dc=example,dc=com
> uid: jrojas
> cn: Javier

CN is generally used as the full name (first + last),  use givenName for
just the first name.

> sn: Rojas
> objectclass: top
> objectclass: person
> objectclass: posixaccount
> loginshell: /bin/bash
> uidnumber: 99
> gidnumber: 99
> homedirectory: /home/jrojas
> userpassword: argentina