[Serusers] Proxy_authorize, www_authorize

Lasse Jansson lasse at solstiernan.nu
Wed Mar 5 22:10:22 CET 2003


Thanks,

One last question: I guess that if I want my server to offer <forwarding of 
requests to other domains> only to authorized users in my domain I should 
restrict the last part more, as follows:

# For requests to other domains
		if (!proxy_authorize("mydomain.com", "subscriber")) {
			proxy_challenge("mydomain.com", "1");
			break;
		};

(i.e. I can skip the (search("(f|From).*mydomain\.com")) condition in this 
case)

Lasse

On Wednesday 05 March 2003 02.08, Jiri Kuthan wrote:
> At 10:43 PM 3/4/2003, Lasse Jansson wrote:
> >Thanks for your answer !
> >
> >I guess then that the following lines (based on the default script) would
> > work to implement all of Michael's example ?
> >
> >Lasse
> >
> >        if (uri=~mydomain.com) {
>
> perhaps better (uri=~"[@:]mydomain\.com"). Everything else seems reasonable
> to me.
>
> -Jiri
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list