Re: Username in MySQL with regexp



christian meutes <christian.meutes@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.





This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.