-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hullo,
I suspect I've found a bug in sqwebmail, or the LDAP authdaemon module, in
that sqwebmail appears to be ignoring the LDAP_MAILDIR directive in
authldaprc.
I have the following lines (among others) in authldaprc:
LDAP_MAILDIR ./.maildir
LDAP_HOMEDIR homeDirectory
LDAP_UID uidNumber
LDAP_GID gidNumber
I can authenticate into sqwebmail via LDAP , so that's set up properly, and
furthermore:
bean sqwebmail # ldapsearch uid=ser homeDirectory uidNumber gidNumber
<snip>
dn: uid=ser,ou=People,dc=germane-software,dc=com
uidNumber: 2001
gidNumber: 100
homeDirectory: /home/ser
</snip>
bean sqwebmail # ls -ldn ~ser/.maildir
drwx------ 124 2001 100 4352 May 27 23:17 /home/ser/.maildir
bean sqwebmail # ls -l /web/Germane-Software/cgi-bin/sqwebmail
-rwsr-xr-x 1 root root 893492 May 27 20:29
/web/Germane-Software/cgi-bin/sqwebmail
sqwebmail claims, nonetheless, that the maildir does not exist or has the
wrong permissions. I have tried various values for LDAP_MAILDIR, including
".maildir", "./.maildir/" and ".maildir/".
Furthermore, if I create a symbolic link in my home directory from .maildir to
Maildir, sqwebmail works.
If I'm misunderstanding the reason for LDAP_MAILDIR, please excuse me. I
understood from the comments in the rc file:
##NAME: LDAP_MAILDIR:0
#
# The MAILDIR attribute is OPTIONAL, and specifies the location of the
# mail directory. If not specified, ./Maildir will be used
that LDAP_MAILDIR was where the actual maildir name was to be specified.
May I humbly suggest that the error message be modified to say *which* mail
directory it is that sqwebmail thinks "doesn't exist or has the wrong
permissions"? It is otherwise a misleading error message, and the
modification may save some people considerable time trying to fix things that
aren't broken.
- --
### SER Deutsch|Esperanto|Francaise|Linux|Java|Ruby|Aikido|Dirigibles ###
### http://www.germane-software.com/~ser jabber.com:ser ICQ:83578737 ###
### GPG: http://www.germane-software.com/~ser/Security/ser_public.gpg ###
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+1C8aP0KxygnleI8RAsD3AKC7FmQ/OzHHpwk61JihXHyS6FWzUQCdFOLb
RuQipMcHsB6gmSV1RaUfAXc=
=/EK2
-----END PGP SIGNATURE-----