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

Re: error add file exsample.ldif



Hi,

you need to put blank lines between two objects in your LDIF file.

Peter

On Wednesday 01 October 2003 00:13, sonjaya@stud.che.itb.ac.id wrote:
> 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
> /usr/local/openldap/exsample.ldif
>
> and i get error like this :
> [root@pim root]# /usr/local/openldap/bin/ldapadd -x -D "cn=sonjaya,dc=pg ,
> dc=com" -W -f /usr/local/openldap/exsample.ldif
> 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

-- 
Peter Marschall
eMail: peter@adpm.de