[Serusers] PATCH: ip auth for each account

Jev jev at ecad.org
Fri Jul 30 21:04:11 CEST 2004


Cool! Will this support network masks also?

-Jev

zolia at z1sys.com wrote:

> hello,
> 
> wrote some small path, which adds authorization with source ip.
> to patch:
> cd ./ser-0.8.14
> patch -p1 < ser-0.8.14_ip_auth.patch
> 
> add additional string column to subscribers: acc_ip
> 
> ex. usage:
> www_authorize_ip("your_realm", "subscriber", "0.0.0.0") )
> 
> where "0.0.0.0" means that source ip will be taken from from msg
> structure. If you specify IP instead of "0.0.0.0" then it will be checked
> instead of one taken from msg structure. It would be equivelent to write
> 
> src_ip != "source_ip_to_check" && !www_authorize("your_realm",
> "subscriber")
> 
> and
> 
> !www_authorize_ip("213.226.186.195", "subscriber", "source_ip_to_check")
> 
> 
> Antanas
> 
[snip]




More information about the sr-users mailing list