Username in MySQL with regexp

Alan DeKok aland at nitros9.org
Mon Jul 3 18:11:14 CEST 2006


christian meutes <christian.meutes at de.clara.net> wrote:
> iam using FreeRADIUS-1.0.5 with MySQL-Backend. Now i want a username check 
> with an regexp operator (=~), so that i can match usernames (+1234567(0-9)) 
> against a regexp of "^\+^1234567" and dont have the need of creating 10 
> users which have all the same reply attributes. 

  Use the regex operator...

> How can i accomplish this? The username itself in the MySQL table doesnt 
> has a check row..

  Add a compare attribute User-Name, with operator =~, and put the
regex into the value field.

  Alan DeKok.




More information about the Freeradius-Users mailing list