Proxy based on User-Name with regex

ivaylosp ivaylosp at gmail.com
Fri Jun 10 23:55:10 CEST 2011


Hi there,

I have been trying to setup a freeradius server that will proxy the
authentication to another server if the User-Name starts with 1234. So for
instance a user logs in with username 1234XXXXXX then in section AUTHORIZE i
have a policy that checks with regex if the username falls in this category:
	api_proxyRedirect{
	   if (User-Name =~ /[1-4]{4}[A-Za-z0-9]{6}/) {
                update control { 
                        Proxy-To-Realm := "myrealm" 
                } 
	   }
	}
Unfortunatelly everything works up to the point where the control needs to
be updated. The server responds with ++++[control] not found.

Any ideas will be very welcome.

Regards,

Ivaylo Petkov




--
View this message in context: http://freeradius.1045715.n5.nabble.com/Proxy-based-on-User-Name-with-regex-tp4477408p4477408.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.



More information about the Freeradius-Users mailing list