[Dovecot] Hostname passed to PAM as rhost

Timo Sirainen tss at iki.fi
Tue Sep 27 21:58:50 EEST 2005


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20050927/52c6afae/attachment.pgp


More information about the dovecot mailing list