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

Re: Problem getting started with openLDAP



Hi,

you do not have 2 different entrties but only one in your LDIF file.

Separate the entries with a blank line.
An entry starts with the line that begins with the characters "dn:"

Peter


On Wednesday 29 October 2003 17:51, Matthew Shaylor wrote:
> Thanks for your help, I'm getting a bit more response from ldap however I'm
> still having problems. I modified my original config file so that it looks
> like this:
>
> ----- ex.ldiff -----
> dn: dc=example,dc=com
> objectclass: dcObject
> objectclass: organization
> o: Example Company
> dc: example
> dn: dc=example,dc=com
> objectclass: organizationalRole
> cn: Manager
> ----------
>
> But I'm still getting errors:
> % ldapadd -D "cn=Manager,dc=example, dc=com" -v -f ex.ldiff
> Bind Password:
> add objectclass:
>         dcObject
>         organization
>         organizationalRole
> add o:
>         Example Company
> add dc:
>         example
> add dn:
>         dc=example,dc=com
> add cn:
>         Manager
> adding new entry dc=example,dc=com
> ldap_add_s: Invalid syntax
>


-- 
Peter Marschall
eMail: peter@adpm.de