[Dovecot] Authentication based on client host
Hi,
I am wondering if it's possible to authenticate users that come from specific IP differently then other users.
I will be authenticating them by postgresql so something like this would be very useful:
password_query = SELECT password from get_user('%username','%host')
Is that possible? Can it be done any other way?
Thanks,
Sebastjan
On Sun, 2005-08-14 at 13:12 +0200, Sebastjan Trepca wrote:
I am wondering if it's possible to authenticate users that come from specific IP differently then other users.
I will be authenticating them by postgresql so something like this would be very useful:
password_query = SELECT password from get_user('%username','%host')
Is that possible? Can it be done any other way?
%r - remote IP address
so get_user('%u', '%r') should work. With 1.0-stable/tests only.
FANTASTIC!!
Thanks! :)
On 14/08/05, Timo Sirainen tss@iki.fi wrote:
On Sun, 2005-08-14 at 13:12 +0200, Sebastjan Trepca wrote:
I am wondering if it's possible to authenticate users that come from specific IP differently then other users.
I will be authenticating them by postgresql so something like this would be very useful:
password_query = SELECT password from get_user('%username','%host')
Is that possible? Can it be done any other way?
%r - remote IP address
so get_user('%u', '%r') should work. With 1.0-stable/tests only.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQBC/7g/yUhSUUBViskRAoFVAJ4vgZKiq5JiFAVTwsR6F5yE+ayRGACfTM8D yJt+aSn/bGuIHa2rJN/ZAFI= =L5EX -----END PGP SIGNATURE-----
participants (2)
-
Sebastjan Trepca
-
Timo Sirainen