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

AW: AW: adding first entry



hi,

i've tried what you did, it works for me.. make sure, you have no special
chars (however..) in your files, and also check for spaces at the end of all
ldif lines.. (wouldn't cause this error, i guess, but give it a try..)

daniel


> but after I´ve changed it and I make this:
> 
> ldapadd -x -v -D "cn=admin,dc=ecrc,dc=de" -W -f entries.ldif
> 
> and get this:
> 
> ldapadd -x -v -D "cn=admin,dc=ecrc,dc=de" -W -f entries.ldif
> 
> ldap_initialize( <DEFAULT> )
> 
> Enter LDAP Password: test
> 
> add objectclass:
>         dcObject
>         organization
> add o:
>         Cable & Wireless Deutschland GmbH
> add dc:
>         ecrc
> adding new entry "dc=ecrc,dc=de"
> ldap_add: Invalid syntax
>         additional info: value contains invalid data
> 
> ldif_record() = 21
> 
> here the new content of the entires.ldif
> 
> dn: dc=ecrc,dc=de
> objectclass: dcObject
> objectclass: organization
> o: Cable & Wireless Deutschland GmbH
> dc: ecrc
> 
> dn: cn=admin,dc=ecrc,dc=de
> objectclass: organizationalRole
> cn: admin