27 Sep
2005
27 Sep
'05
9:58 p.m.
On Mon, 2005-09-26 at 22:24 +0300, Tom Alsberg wrote:
Thinking of some limit I wanted to put with authentication, I am wondering - when Dovecot authenticates a user using PAM, now that (in 1.0) it passes the rhost item to PAM, it passes a hostname, not an IP address.
You're looking at it wrong somehow. Dovecot doesn't do DNS lookups anywhere (and I hope to avoid it as long as possible). The code to set rhost looks like:
#ifdef PAM_RHOST const char *host = net_ip2addr(&request->remote_ip); if (host != NULL) pam_set_item(pamh, PAM_RHOST, host); #endif