[Dovecot] auth-worker always opens PAM session

Timo Sirainen tss at iki.fi
Fri Feb 20 23:38:10 EET 2009


On Thu, 2009-02-19 at 13:59 -0300, Miguel Di Ciurcio Filho wrote:
> But I suspect that dovecot should not be opening sessions, because there 
> is no session=yes on my passdb configuration.

Why do you think it is opening sessions?

> /* -session for backwards compatibility */
> 		if (strcmp(t_args[i], "-session") == 0 ||
> 		    strcmp(t_args[i], "session=yes") == 0)
> 			module->pam_session = TRUE;
> 
> It seams to me that the session is going to be opened anyway, since 
> pam_session is always TRUE.

Why? That code sets it to TRUE only when -session or session=yes
parameter is seen.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090220/e0ed1493/attachment.bin 


More information about the dovecot mailing list