You don't have all the files required to read the controls.  You will need these files 
under /var/qmail/control in order for your server to know where to look for those 
parameters.

http://www.lifewithqmail.org/ldap

section 12.3.6

Gene Parks
VIP Direct
[EMAIL PROTECTED]

-----Original Message-----
From: David Koopman [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 8:02 PM
To: [EMAIL PROTECTED]
Subject: alert: cannot start: unable to read controls


I have successfully compliled (no errors during
compile) qmail-1.03 with
qmail-ldap-1.03-20020501a.patch and
qmail-ldap-control_20020524.patch

Before compling the control patch, I had compiled with
just the ldap patch and had complete success.  Now I
am trying to get the ldap-control patch to work, but
am having much trouble.  I finally got
qmail-ldaplookup -u [EMAIL PROTECTED] to work
properly, but now I have a new problem:

I cannot load my control files from LDAP :(  Log file
shows this:

alert: cannot start: unable to read controls

What can I do?  I have poured over the configuration
for days and need to get this working.  The pressure
is on, I hope I can get this working!  PLEASE HELP.

Here are my /var/qmail/control files:
cat concurrencyincoming
120

cat concurrencyremote
120

cat defaultdelivery
./Maildir/

cat ldapbasedn
dc=test,dc=com

cat ldapcluster
0

cat ldapcontroldn
cn=smtp-1.test.com, ou=QmailControl, dc=test, dc=com

ldaplogin
cn=qmail, dc=godaddy, dc=com

ldapobjectclass
qmailuser

ldappassword
password

ldapport
389

ldapserver
192.168.4.166

me
smtp-1.test.com

rcpthosts
smtp-1.test.com

Here is my qmailControl.ldif:

dn: cn=smtp-1.test.com,ou=QmailControls,dc=test,dc=com
cn: smtp-1.test.com
objectClass: top
objectClass: qmailControl
locals: localhost
locals: smtp-1.test.com
locals: testdomain.com
ldapUid: 1000
ldapGid: 1000
ldapDefaultQuota: 10000000S, 10000C
quotaWarning: WARNING: Your mail account is almost
over quota.
rcptHosts: testdomain.com
rcptHosts: smtp-1.test.com
ldapBaseDN: ou=domains, dc=test, dc=com
concurrencyLocal: 120
concurrencyRemote: 120
ldapDefaultDotMode: ldaponly
ldapMessageStore: /var/qmail/popboxes
ldapLocalDelivery: 0
--------------------------------------------------

And finally, here is a printout from 'slapd -d4'
which tells me it is at least trying to get the
information:

connection_get(14)
send_ldap_result: 0::
ber_flush: 14 bytes to sd 14
connection_get(14)
SRCH "cn=smtp-1.test.com, ou=QmailControl, dc=test,
dc=com" 2 0    0 0 0
    filter:
(&(cn=smtp-1.test.com)(objectClass=qmailControl))
    attrs: envnoathost
send_ldap_result: 10:dc=test, dc=com:
ber_flush: 32 bytes to sd 14
connection_get(14)
SRCH "cn=smtp-1.test.com, ou=QmailControl, dc=test,
dc=com" 2 0    0 0 0
    filter:
(&(cn=smtp-1.test.com)(objectClass=qmailControl))
    attrs: locals
send_ldap_result: 10:dc=test, dc=com:
ber_flush: 32 bytes to sd 14
connection_get(14)
connection_get(14)
send_ldap_result: 0::
ber_flush: 14 bytes to sd 14
connection_get(14)
SRCH "cn=smtp-1.test.com, ou=QmailControl, dc=test,
dc=com" 2 0    0 0 0
    filter:
(&(cn=smtp-1.test.com)(objectClass=qmailControl))
    attrs: envnoathost
send_ldap_result: 10:dc=test, dc=com:
ber_flush: 32 bytes to sd 14
connection_get(14)
SRCH "cn=smtp-1.test.com, ou=QmailControl, dc=test,
dc=com" 2 0    0 0 0
    filter:
(&(cn=smtp-1.test.com)(objectClass=qmailControl))
    attrs: locals
send_ldap_result: 10:dc=test, dc=com:
ber_flush: 32 bytes to sd 14
connection_get(14)
connection_get(14)
send_ldap_result: 0::
ber_flush: 14 bytes to sd 14
connection_get(14)
SRCH "cn=smtp-1.test.com, ou=QmailControl, dc=test,
dc=com" 2 0    0 0 0
    filter:
(&(cn=smtp-1.test.com)(objectClass=qmailControl))
    attrs: envnoathost
send_ldap_result: 10:dc=test, dc=com:
ber_flush: 32 bytes to sd 14
connection_get(14)
SRCH "cn=smtp-1.test.com, ou=QmailControl, dc=test,
dc=com" 2 0    0 0 0
    filter:
(&(cn=smtp-1.test.com)(objectClass=qmailControl))
    attrs: locals
send_ldap_result: 10:dc=test, dc=com:
ber_flush: 32 bytes to sd 14
connection_get(14)
connection_get(14)
send_ldap_result: 0::
ber_flush: 14 bytes to sd 14
connection_get(14)
SRCH "cn=smtp-1.test.com, ou=QmailControl, dc=test,
dc=com" 2 0    0 0 0
    filter:
(&(cn=smtp-1.test.com)(objectClass=qmailControl))
    attrs: envnoathost
send_ldap_result: 10:dc=test, dc=com:
ber_flush: 32 bytes to sd 14
connection_get(14)
SRCH "cn=smtp-1.test.com, ou=QmailControl, dc=test,
dc=com" 2 0    0 0 0
    filter:
(&(cn=smtp-1.test.com)(objectClass=qmailControl))
    attrs: locals
send_ldap_result: 10:dc=test, dc=com:
ber_flush: 32 bytes to sd 14
connection_get(14)
-----------------------------------------
All of that being said, can you see what is wrong? 
What am I missing?  What can I do?


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

Reply via email to