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

error add file exsample.ldif

i follow this step  http://www.openldap.org/doc/admin21/quickstart.html.
here my exsample.ldif file:
dn: dc=pg,dc=com
objectclass: dcObject
objectclass: organization
o: pim-net
dc: pg
dn: cn=sonjaya,dc=pg,dc=com
objectclass: organizationalRole
cn: sonjaya
and here my slapd.conf :
database        bdb
suffix          "dc=pg,dc=com"
rootdn          "cn=sonjaya,dc=pg,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          xxxxxx
adn here i my step to try upload :

/usr/local/openldap/bin/ldapadd -x -D "cn=sonjaya,dc=pg , dc=com" -W -f

and i get error like this :
[root@pim root]# /usr/local/openldap/bin/ldapadd -x -D
"cn=sonjaya,dc=panasiagroup , dc=co,dc=id" -W -f
Enter LDAP Password:
adding new entry "dc=pg,dc=com"
ldapadd: update failed: dc=pg,dc=com
ldap_add: Invalid syntax (21)
        additional info: objectclass: value #0 invalid per syntax