Re: Removing characters from usernames

2007-02-01 Thread Andrew Zirkel
I was thinking I could do something like this with a regular expression: User-Name =~ tr/-//d but I'm not sure where to do it and if it will work. I'm using a mysql back end so I was thinking in the sql.conf file. Has anyone done something like this before? Thanks, Andy On Jan 31, 2007, at

Re: Removing characters from usernames

2007-02-01 Thread Markus Krause
I am doing this using the attr_rewrite module in radiusd.conf, i have the following section: modules { attr_rewrite macaddress_rewrite { attribute = User-Name searchin = packet searchfor = - replacewith =

Re: Removing characters from usernames

2007-02-01 Thread Andrew Zirkel
Thanks that did the trick for User-Name and User-Password after I put what I renamed the name macaddress_rewrite to in the authorization section. Andy Zirkel On Feb 1, 2007, at 12:53 PM, Markus Krause wrote: I am doing this using the attr_rewrite module in radiusd.conf, i have the