On Mon, Sep 09, 2002 at 11:27:43AM +0200, - = k o l i s k o = - wrote:
> Hi all,
> 
> I have here more info. Cut from tehthereal (packet sniffer). I connected
> the tethereal to a loopback interface. You can see that ldap
> connunication (server) was sending the results with information about
> user 'testuser' to qmail-ldaplookup client (part of qmail-ldap). But
> qmail-ldaplookup tell me the following:
> 
> 
> 0 root@kolisko:root# qmail-ldaplookup -u testuser -p testuser
> init_ldap:      passwords are not compared via rebind
>                 localdelivery:   on
>                 clustering:      off
>                 ldapobjectclass:
>                 homedirmaker:
>                 defaultDotMode:  ldaponly
>                 defaultQuota:
>                 QuotaWarning:
> ------
> undefined
> ------
> qldap_lookup: searching with (uid=testuser)
> qldap_lookup:   NOT successful: needed object/field is missing
> Will try a local password lookup
> local_lookup:   user testuser not found in passwd db
> 0 root@kolisko:root#
> 
> 
> My question is - What is wrong? ldapsearch utils from ldap package work
> well for searching the user 'testuser' from ldap directory, but
> qmail-ldaplookup dont work well. The communication between
> qmail-ldaplookup and ldap server looks good but qmail-ldaplookup cant
> find the request. :-(
> 
> > Info:
> > 
> > cd /var/qmail/control
> > 1 kolisko@kolisko:control$ for i in `ls`; do echo $i:; cat $i; done
> > ldapbasedn:
> > dc=broadnet,dc=cz
> > ldapcontroldn:
> > dc=broadnet,dc=cz
> > ldaplogin:
> > cn=admin,dc=broadnet,dc=cz
> > ldappassword:
> > XXXXX
> > ldapserver:
> > localhost
> > locals:
> > kolisko.broadnet.cz
> > me:
> > kolisko.broadnet.cz
> > rcpthosts:
> > localhost
> > 
> > # test test, root.cz, broadnet, cz
> > dn: cn=test test,ou=root.cz,dc=broadnet,dc=cz
> > objectClass: top
> > objectClass: person
> > objectClass: qmailuser
> > cn: test test
> > sn: test test
> > mail: [EMAIL PROTECTED]
> > uid: testuser
> > accountStatus: active
> > mailHost: centaurus.4web.cz
> > mailMessageStore: root.cz/testuser
> > deliveryMode: localdelivery
> > 

The error message is quite clear:
> qldap_lookup:   NOT successful: needed object/field is missing

A ldap field or object is missing so the user record is incomplete and
qmail-ldap can not work with the returned info.

In your case the qmailUID and qmailGID is missing.

>From QLDAPINSTALL:
~control/ldapuid

 The default UID used in virtual users environments. This value will be
 used for ldap entries with no LDAP_QMAILUID (see below) field
 Default: NULL
 Example: 1010
 Note: should be a real UID, must be above 100

LDAP_QMAILUID (default: "qmailUID")

 UID of the user on the mailsystem
 Example: 1010
 Note: Can be omitted in a virtual users environment
       but only if it is defined via the control file ~control/ldapuid 

same for qmailGID

-- 
:wq Claudio

Reply via email to