qmail cannot connect to the ldap server .

Here are the error message
  fafner#       qmail-ldaplookup -m [EMAIL PROTECTED]
  init_ldap:    passwords are not compared via rebind
                localdelivery:   off
                clustering:      on
                ldapobjectclass: qmailuser
                homedirmaker:    /var/qmail/bin/custom_dirmaker
                defaultDotMode:  ldaponly
                defaultQuota:    10000000S, 10000c
                QuotaWarning:
  ------
  Clean your mailbox.

  ------
  qldap_open:   NOT successful: binding to ldap server failed

in conjunction with this error from the log;

 2002-05-11 05:16:12.055093500 status: local 1/10 remote 0/20
 2002-05-11 05:16:12.072272500 delivery 334: deferral:    
Unable_to_login_into_LDAP_server._(bad_username/password?)._(LDAP-ERR_#203)/
 2002-05-11 05:16:12.074205500 status: local 0/10 remote 0/20

I must admit this looks like a pretty obvious error message so I 
verified the root and qmail ids in the ldap databse can gain access.

I looked in the archives and the only reference to this was to 
make sure some compile time options were set. Here's the make command I 
used to install qmail-ldap from ports overtop a vanilla install of 
qmail:

 make WITH_QMAILQUEUE_PATCH=yes WITH_BIG_TODO_PATCH=yes \
           WITH_LDAP_DEBUG=yes WITH_LDAP2=yes \
           WITH_DASH_EXT=yes 

LDAP server is running.  I've populated the database with a few test 
ids: ldapadd, ldapmodify, ldapdelete all work 

The following command works associated with the qmail id/password in 
the ldap database:

 ldapsearch -x -b "dc=dubium,dc=com" -D "cn=qmail,dc=dubium,dc=com" \
           -W "(&(objectclass=qmailuser)(uid=$UID))"

I've gone over all the control files - ldappassword contains the 
cleartext password. which matches the password I enter in the previous 
ldapsearch command

vamil user/group are in the password, group files.  vmail ownes the 
maildir

I've read and re-read the lifewith qmail-ldap and derivative 
documentation several authors have written.

I'm stuck. I just don't know where to look next. Any help would be 
appreciated
----------------------------------------
Joe Sotham
-----------------------------------------
All shall be well, and all shall be well,
and all manner of things shall be well.
               Julian of Norwich

Reply via email to