30 Dec
2010
30 Dec
'10
11:04 a.m.
On Mon, 2010-12-27 at 15:04 -0800, Calvin wrote:
I noticed that disabling services using vpopmail was not being recognized by dovecot. Using "vmoduser -swip user@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.
Thanks, fixed: http://hg.dovecot.org/dovecot-2.0/rev/9216e5c861ee