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

ldapadd and "Invalid syntax"

After struggling 2 days with adding entries to my new openldap-server (*), I
give up and request a newbie-help:

I have done all steps from
http://www.openldap.org/doc/admin/guide.html#A Quick-Start Guide
until section 2.10 where I get the error:

# ldapadd -x -D "cn=Manager,dc=uni-stuttgart,dc=de" -w XXXX -f root.ldif
adding new entry "dc=uni-stuttgart,dc=de"
ldap_add: Invalid syntax
        additional info: value contains invalid data
ldif_record() = 21

I run slapd with option -d 256 and it says:

daemon: conn=0 fd=8 connection from IP= (IP=:: 389) accepted.
conn=0 op=0 BIND dn="CN=MANAGER,DC=UNI-STUTTGART,DC=DE" method=128
ber_flush: 14 bytes to sd 8
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 ADD dn="DC=UNI-STUTTGART,DC=DE"
ber_flush: 41 bytes to sd 8
conn=0 op=1 RESULT tag=105 err=21 text=value contains invalid data
conn=0 op=2 UNBIND
conn=-1 fd=8 closed

root.ldif contains:

dn: dc=uni-stuttgart,dc=de
objectclass: dcObject
objectclass: organization
o: Universitaet Stuttgart
dc: Uni-Stuttgart

dn: cn=Manager,dc=uni-stuttgart,dc=de
objectClass: organizationalRole
cn: Manager

In slapd.conf I have:

include         /opt/openldap-2.0.7/etc/openldap/schema/core.schema
database        ldbm
suffix          "dc=uni-stuttgart,dc=de"
rootdn          "cn=Manager,dc=uni-stuttgart,dc=de"
rootpw          XXXX

(*) openldap-2.0.7 on Solaris 2.8 with cofiguration:
    ./configure --prefix=/opt/openldap-2.0.7 --with-cyrus-sasl --with-readline --with-threads  --with-tls  --enable-spasswd  --enable-wrappers --enable-ldap  --enable-shell

-- Ulli Horlacher, BelWue Coordination ---------- mailto:framstag@belwue.de --
   Computing Centre University of Stuttgart (RUS)  phone: +49 711 685 5868
   Allmandring 30, D-70550 Stuttgart, Germany        fax: +49 711 678 8363
-- saft://saft.belwue.de/framstag ----------------- http://www.belwue.de/ ----