[Dovecot] vpopmail disabled services fix
Calvin
calvin at erado.com
Tue Dec 28 01:04:48 EET 2010
I noticed that disabling services using vpopmail was not being recognized by
dovecot. Using "vmoduser -swip user at domain.com" should disable all services,
but both pop and imap logins were still allowed. After a bit of digging in
the code and confirming with a few debug lines, it appears that lines 38 and
52 of src/auth/passdb-vpopmail.c are the issue (dovecot 2.0.8). These two
lines do a strcmp on request->service. It appears that request->service is in
lower case, but the comparison values are in upper case. Either updating the
values to lowercase or using strcasecmp should fix the issue.
Calvin
_________________________________________________
Scanned on 27 Dec 2010 23:05:02
This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender at 425-336-0480 and delete the e-mail message from your computer. Thank you.
More information about the dovecot
mailing list