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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20050815/077c2e43/attachment.bin>