[RADIATOR] Check for Client-Id with regexp ?

Patrik Forsberg patrik.forsberg at ip-only.se
Mon Sep 17 14:25:33 UTC 2018


Hello,

Resolved this issue myself :)

[0-9]{1,3} doesn't work tho so my final solution is
NAS-IP-Address = /10\.0\.0\..*/
as check item.
Or
"
username1 Password=luser1,NAS-IP-Address = /10\.0\.0\..*/
"

---
Regards,
Patrik Forsberg

> -----Original Message-----
> From: radiator <radiator-bounces at lists.open.com.au> On Behalf Of Patrik
> Forsberg
> Sent: den 17 september 2018 14:44
> To: radiator at lists.open.com.au
> Subject: [RADIATOR] Check for Client-Id with regexp ?
> 
> Hi,
> 
> Is it possible to check for Client-Id with a regexp ?
> Say for example I wish to allow a specific user access only to client-id's with IP
> that is in the 10.0.0/24 range .. aka. 10.0.0.[0-9]{1,3} ?
> 
> Or option 2. to add to the request when the client matches and do a check
> against that optional value ?
> a.k.a.
> <Client 10.0.0.[0-9]{1,3}>
>  AddToRequest OSC-Device-Identifier="SpecialClient"
> </Client>
> 
> And in the user clause say
> '' username1 Password=luser1,OSC-Device-Identifier="SpecialClient" ''
> 
> ?
> 
> Or do I have to make a special <Handler> for this user case ?
> 
> ---
> Regards,
> Patrik Forsberg
> 
> _______________________________________________
> radiator mailing list
> radiator at lists.open.com.au
> http://lists.open.com.au/mailman/listinfo/radiator


More information about the radiator mailing list