Qmail-LDAP
[Top] [All Lists]

Re: Help creating admin and user

To: qmail-ldap@qmail-ldap.org
Subject: Re: Help creating admin and user
From: Sebastian Benoit <benoit-lists@fb12.de>
Date: Fri, 9 Feb 2007 08:28:47 +0059
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
In-reply-to: <45CBC3B9.8010606@gmail.com>
Mail-followup-to: qmail-ldap@qmail-ldap.org
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
Organisation: Organisation against the bulletization of popular thought as a result of the increasing prevalence of Microsoft PowerPoint(TM)
References: <45CBC3B9.8010606@gmail.com>
User-agent: Mutt/1.4.2.2i
Mário Gamito(gamito@gmail.com) 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: gamito@www.sincity.lan
> 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 <benoit-lists@fb12.de>

Attachment: pgpTGHesXVhSJ.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>