5 Nov
2014
5 Nov
'14
10:40 a.m.
Rando Nakarmi wrote:
I have regex in my /etc/raddb/site-enabled/default authorize section as :
if (User-Name =~ /^([^@]*)@([-A-Z0-9]+(\\.[-A-Z0-9]+)+)$/i) {
Which only looks for "example.com", and not "a.example.com".
This is working well, with example.com. but when user sends user@a.example.com then it sends to DEFAULT which send to UPstream radius server.
That's what you told it to do.
So, what shall I do a.example.com, b.example.com (valid sub-domain) not to send upstream server ?
Update the regex to match subdomains, too: if (User-Name =~ /^([^@]*)@(([-A-Z0-9]+\.)*[-A-Z0-9]+(\\.[-A-Z0-9]+)+)$/i) Alan DeKok.