Mário Gamito([EMAIL PROTECTED]) on 2007.02.09 00:43:37 +0000:
> Hi,
> 
> I'm trying to create the admin and a user, but i can't.
> 
> I'm using this base.ldif file:
> -------------------------------------------------
> dn: cn=Mario Gamito, dc=sincity, dc=lan
> cn: Mario Gamito
> mail: [EMAIL PROTECTED]
> objectClass: qmailUser
> mailHost: www.sincity.lan
> mailMessageStore: /var/qmail/maildirs/gamito
> mailQuotaSize: 1000000
> qmailUID: 7798
> qmailGID: 2108
> uid: gamito
> userPassword: {MD5}2EBkyEbKsYUpC/T/5VFuOg==
> --------------------------------------------------
> 
> with the command:
> ldapadd -x -D "cn=root,dc=sincity,dc=lan" -w secret -f base.ldif
> 
> but i get the error:
> adding new entry "cn=Mario Gamito, dc=sincity, dc=lan"
> ldap_add: Object class violation (65)
>         additional info: entry has no objectClass attribute

You need a STRUCTURAL objectClass, qmailUser is only AUXILARY.
Use person or inetOrgPerson in addition to qmailUser.

/B.
-- 
Sebastian Benoit <[EMAIL PROTECTED]>

Attachment: pgprKmmi6M7Fb.pgp
Description: PGP signature

Reply via email to