I have installed sqwebmail and I'm attempting to use authldap in
conjunction with qmail-ldap. The authdaemon.ldap appears to be working
correctly as if I login with an incorrect password I get the invalid
user/passwrod screen and if I login with a valid user/password the login
doesn't fail but I get an Internal Server Error with the following error
in my apache error_log:
chdir: No such file or directory
[Sun Oct 20 14:13:04 2002] [error] [client 192.168.2.99] Premature end
of script headers:
/usr/local/apache/VHosts/testmail.blahz.ab.ca/cgi-bin/sqwebmail
I understand that the error is due to the sqwebmail being unable to
change into a directory , from looking at the code I'm guessing that
it's coming from this section of authlib/success.c (about line 46)
if (chdir(homedir))
{
perror("chdir");
authexit(1);
}
This would suggest to me that sqwebmail is unable to find the
homedirectory. The values set in my authldaprc (below) seem to be right
and match what is actually on the system. My best guess is that
sqwebmail isn't handling my virtual domains correctly which seems wrong
cause it's able to find my user/password combinations correctly.
Here is my authldaprc (minus comments):
LDAP_SERVER 127.0.0.1
LDAP_PORT 389
LDAP_BASEDN o=Blahzmail, c=CA
LDAP_BINDDN cn=mailadmin, o=Blahzmail, c=CA
LDAP_BINDPW xxxxxxxx
LDAP_TIMEOUT 5
LDAP_AUTHBIND 0
LDAP_MAIL uid
LDAP_FILTER (objectClass=qmailuser)
LDAP_DOMAIN blahz.ab.ca
LDAP_GLOB_UID vmail
LDAP_GLOB_GID vmail
LDAP_HOMEDIR mailMessageStore
LDAP_MAILROOT /var/qmail/maildirs/
LDAP_CLEARPW clearPassword
LDAP_CRYPTPW userPassword
LDAP_DEREF never
LDAP_TLS 0
My virtual domains are stored as a seperate ou's under my base dn
ie:
o=Blahzmail,c=CA
|
-->ou=domain1.com,o=Blahzmail,c=CA
|
-->cn=Full Name,ou=domain1.com.o=Blahzmail,c=CA
......
I get the error whether I use Mozilla or IE. I can't seem to find
anything wrong with the install. Anyone have any ideas on how to
correct this error?
Below I've attached an dump of a useraccount out of the ldap
Virtual domain Base:
# blahz.ab.ca, Blahzmail, CA
dn: ou=blahz.ab.ca,o=Blahzmail,c=CA
objectClass: top
objectClass: organizationalUnit
ou: blahz.ab.ca
description: blahz.ab.ca
User:
dn: cn=Test Test,ou=blahz.ab.ca,o=Blahzmail,c=CA
objectClass: top
objectClass: person
objectClass: qmailuser
cn: Test Test
sn: Test Test
mail: [EMAIL PROTECTED]
uid: [EMAIL PROTECTED]
accountStatus: active
userPassword: {crypt}$1$Yu6oU0fm$LzvwwM6/NdzrYCxLEPXJ21
mailHost: mail4.blahz.ab.ca
mailMessageStore: [EMAIL PROTECTED]
qmailDotMode: ldapwithprog
deliveryProgramPath: /bin/spam-check blahz.ab.ca [EMAIL PROTECTED]
And the user's homedirectory/mailMessageStore:
# ls -laR /var/qmail/maildirs/blahz.ab.ca/test\@blahz.ab.ca/
[EMAIL PROTECTED]/:
total 12
drwx------ 3 vmail vmail 4096 Oct 20 14:59 .
drwxr-xr-x 21 vmail vmail 4096 Sep 9 20:33 ..
drwx------ 6 vmail vmail 4096 Sep 17 14:22 Maildir
Thanks for any help.
--Mike
