OK. I posted my earlier problems to this list, and was told in a nice
friendly manner that there was a Qmail-LDAP mailing list to send to. So I
subscribed, and posted all my current findings to it. I got all my messages
back, but not a single soul has responded (nor even posted queries of their
own), so I'm forced to bring my problem back here, hoping that a qmail guru
somewhere will have some idea of what to change.
I have applied the Qmail-LDAP patch to the vanilla qmail source code. My
LDAP server is up and running. When I compile the new checkpassword with
debugging turned on, it appears to get the username and password from the
command line, and when I provide them, it connects to the server, checks my
password, and returns my home directory perfectly. When I turn debugging
off, and it tries to get the USER and PASS from qmail-popup, it appears to
stop working. I modified the checkpassword code to display debugging output
without expecting the username and password on the command line (basically
just a quick commenting out of the #ifdef section that grabs the parameters
from argv[]) and when I run
qmail-popup localhost checkpassword
it complains that no username is being provided. Surely the patched
checkpassword couldn't be so broken, or noone else would be able to use it
(??!?)
Basically, how does qmail-popup present the username and password to the
checkpassword program, and how should checkpassword get these arguments?
I'd love to sit down and go through the qmail code enough to figure it out,
but I'm leaving this job at the end of the year, and I need to get the
system working in such a way that it can be easily administered by someone
with no knowledge of qmail or linux (some might say the same way I've done
so far! =) ).
Anyway, any help or pointers in the right direction would be greatly
appreciated...