Jose Guevarra <[EMAIL PROTECTED]> wrote: > In my hints file i have > > DEFAULT Calling-Station-Id =~ "(\w\w)\-(\w\w)\-(\w\w)\-(\w\w)\-(\w\w)\-(\w\w)" > User-Name := `%{0}` > > This should set the User Name to the hex characters in the mac address > or 'something' at least
Or something... And if you're going to use %{0}, you don't need regular expressions. Just use "%{Calling-Station-Id}" > However, in debug mode I can see that User-Name is not modified. > > In perl i can use the regex below and it seems to work Perl supports "\w" in regular expressions. Posix expressions (which the libraries from your system the server uses) do not support "\w". Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html