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

Re: Error 65



Hi,

On Thursday 22 April 2004 14:10, Vladimir Potapov wrote:
> 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
>
> I looking in doc's and all objects dependences is fine.Why I have this
> error?

Your entry was not valid according to rfc2252, which says that each entry must 
have a structural object class.  (qmailuser and courierMailAccount seem to 
bee auxiliary objectclasses) 
Try adding the account or inetOrgPerson objectclass in addition to the ones
you already have.

See also http://www.openldap.org/faq/data/cache/650.html

Peter

-- 
Peter Marschall
eMail: peter@adpm.de