Proxy based on User-Name with regex
Phil Mayers
p.mayers at imperial.ac.uk
Sat Jun 11 09:41:55 CEST 2011
On 06/10/2011 10:55 PM, ivaylosp wrote:
> 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.
Really? Hmm. Everything looks ok at a glance. Can you post a full
"radiusd -X" debug?
More information about the Freeradius-Users
mailing list