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

problems on ldap:add: Invalid syntax (21)



hello,

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

this is the user.ldif content:

dn: uid=jrojas,ou=argentina,dc=example,dc=com
uid: jrojas
cn: Javier
sn: Rojas
objectclass: top
objectclass: person
objectclass: posixaccount
loginshell: /bin/bash
uidnumber: 99
gidnumber: 99
homedirectory: /home/jrojas
userpassword: argentina

dn: uid=aacosta,ou=brasil,dc=example,dc=com
uid: aacosta
cn: Alejandro
sn: Acosta
objectclass: top
objectclass: person
objectclass: posixaccount
loginshell: /bin/bash
uidnumber: 100
gidnumber: 100
homedirectory: /home/aacosta
userpassword: brasil

dn: uid=llopez,ou=venezuela,dc=example,dc=com
uid: llopez
cn: Lewis
sn: Lopez
objectclass: top
objectclass: person
objectclass: posixaccount
loginshell: /bin/bash
uidnumber: 102
gidnumber: 102
homedirectory: /home/llopez
userpassword: venezuela

i checked is there was any blank spaces at the end of each objectclass
and left a white line before each "dn" line.

can't seem to find the error...
-- 
Javier Rojas