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

Error 65



I try to add some information into db.

suse:/etc/openldap # ldapadd -W -x -D "cn=root,dc=test,dc=ru" -f users.ldif
Enter LDAP Password:
adding new entry "uid=pvm,ou=mailusers,dc=test,dc=ru"
ldapadd: update failed: uid=pvm,ou=mailusers,dc=test,dc=ru
ldap_add: Object class violation (65)
        additional info: no structural object class provided

user.ldif :

dn: uid=pvm,ou=mailusers,dc=test,dc=ru
uid: pvm
cn: Ivanov V.M.
mail: pvm@test.ru
uidNumber: 1000
gidNumber: 1000
mailHost: suse.test.ru
homeDirectory: /var/imap/home/pvm
mailMessageStore: /var/imap/home/pvm/Maildir
mailQuota: 200000000S, 20000C
mailbox: pvm/Maildir/
objectClass: qmailuser
objectClass: courierMailAccount
userPassword: secret
accountStatus: active
mailForwardingAddress: pvm@test.ru

Slapd.conf :

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/corba.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/openldap.schema
include /etc/openldap/schema/qmail.schema
include /etc/openldap/schema/authldap.schema
pidfile         /var/run/ldap/slapd.pid
argsfile        /var/run/ldap/slapd.args
database        ldbm
suffix          "dc=test,dc=ru"
rootdn          "cn=root,dc=test,dc=ru"
rootpw          secret
directory       /var/lib/ldap
index   objectClass,uid,uidNumber,gidNumber     eq
index   cn,mail,surname,givenname               eq,subinitial
loglevel -1

I looking in doc's and all objects dependences is fine.Why I have this error?