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

Re: cannot add entries - Server is unwilling to perform (53)



Hi,

Darren Davison <darren@davison.uk.net> writes:

> I'm new to openLDAP and trying to setup an LDAP directory for a small home 
> network.  Right now I can't insert any entries at all with ldapadd.
>
> openldap is installed ok and slapd is running under the ldap user account.
> Here's what occurs if I try to add myself to the directory (some bits 
> changed to protect the innocent):
>
> bacall root # ldapadd -v -D "cn=root,dc=foo,dc=bar,dc=com"
> -f /home/darren/dd.ldif -W
[...]
> the ldif file in question (exported from another application):
>
> dn: cn=Darren Davison,mail=darren@foo.bar.com
> givenname: Darren
> sn: Davison
> cn: Darren Davison
> uid: ddavison
> mail: darren@foo.bar.com
> modifytimestamp: 20040407T001612Z
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
>   
>
> Config is as follows:
>
> bacall root # grep ^[^#] /etc/openldap/slapd.conf
> include         /etc/openldap/schema/core.schema
> pidfile         /var/run/openldap/slapd.pid
> argsfile        /var/run/openldap/slapd.args
> database        bdb
> suffix          "dc=foo,dc=bar,dc=com"
> rootdn          "cn=root,dc=foo,dc=bar,dc=com"
> rootpw          {SSHA}xxxxxxxxxx
> directory       /var/lib/openldap-data
> index   objectClass     eq

The syntax of your distinguished name  and is wrong, it doesn't match
the suffix. Read the Administrator's Guide on LDIF text entry format.

-Dieter


-- 
Dieter Kluenter  | Systemberatung
Tel:040.64861967 | Fax: 040.64891521
mailto: dkluenter(at)dkluenter.de
http://www.avci.de