19 Jan
2011
19 Jan
'11
3:45 a.m.
admin wrote:
Something of type such this?
if ("%{User-Name}"=~/([a-zA-Z0-9_.]+)\s+$/i) { %{User-Name}=%{1} }
Not quite... if (User-Name =~ /(.+)\s+$/i) { update request { User-Name := "%{1}" } } See "man unlang".
Where it is necessary to insert it in config file that User-Name changed globally before any actions with it?
In the "authorize" section. *Read* the debug output. It's clear that the "authorize" section is processed first when the server receives a packet.
However... my $0.02 is that you shouldn't. Instead, if you see a User-Name with spaces, *reject* it. The user is trying to play games.
Yes, but it creates many questions from users.
Like "how did you catch my trying to cheat you?" Alan DeKok.