[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
why? ldap_add: Undefined attribute type
hello,
i'm on debian with slapd 2.0.11
after sucessfully added my domain tree and admins file but I cannot succes adding users to the ldap tree with ldapadd I'm getting this:
----------
ldapadd -x -h localhost -p 389 -D "cn=root,dc=turistic,dc=net" -w secret -f turistic_net_persons.ldif
adding new entry "uid=Jaume.Teixi, ou=Administrators, o=Girona, dc=turistic, dc=net"
ldap_add: Undefined attribute type
additional info: maildrop:
° D
ldif_record() = 17
----------
on slapd.conf I've setup:
----------
include /etc/ldap/turistic/turistic_net_at.conf
include /etc/ldap/turistic/turistic_net_oc.conf
schemacheck on
database ldbm
suffix "dc=turistic, dc=net"
directory "/var/lib/ldap"
defaultaccess none
...
access to attribute=userPassword
by dn="cn=admin,o=Administrators,dc=turistic,dc=net" write
by dn="cn=imap,o=Administrators,dc=turistic,dc=net" read
by self write
by * none
access to attribute=maildrop
by dn="cn=admin,o=Administrators, dc=turistic,dc=net" write
by dn="cn=mail,o=Administrators, dc=turistic,dc=net" read
by dn="cn=imap,o=Administrators, dc=turistic,dc=net" read
by * none
access to attribute=*
by dn="cn=admin,o=Administrators,dc=turistic,dc=net" write
by * read
----------
I've the following files:
#cat /etc/ldap/turistic/turistic_net_at.conf
attribute allowedServices ces
attribute maildrop ces
# cat /etc/ldap/turistic/turistic_net_oc.conf
objectclass personTuristic
requires
objectclass,
cn,
uid,
mail,
maildrop,
userPassword
allows
allowedServices
# cat /etc/ldap/turistic/turistic_net_tree.ldif
dn: dc=turistic, dc=net
objectclass: dcobject
dc: turistic
dn: o=Administrators, dc=turistic, dc=net
objectclass: organization
o: Administrators
dn: o=Girona, dc=turistic, dc=net
objectclass: organization
o: Girona
dn: ou=Peoples, o=Girona, dc=turistic, dc=net
objectclass: organizationalUnit
ou: Peoples
dn: ou=Administrators, o=Girona, dc=turistic, dc=net
objectclass: organizationalUnit
ou: Administrators
and the file I'm tring to add:
# cat /etc/ldap/turistic/turistic_net_persons.ldif
dn: uid=Jaume.Teixi, ou=Administrators, o=Girona, dc=turistic, dc=net
objectclass: personTuristic
uid: Jaume.Teixi
cn: Jaume Teixi
maildrop: /var/mail/Jaume.Teixi/
userPassword: mysecret
mail: teixi@girona.turistic.net
mail: Jaume.Teixi@girona.turistic.net
what I'm missing?¿
best from barcelona,
jaume teixi.