User file _matching

Matthew Newton mcn at freeradius.org
Thu Mar 11 14:50:09 CET 2021



On 11/03/2021 13:44, Hassan, Hazem (Nokia - EG/Cairo) wrote:
> (2)     policy filter_username {
> (2)       if (&User-Name) {
> (2)       if (&User-Name)  -> TRUE
> (2)       if (&User-Name)  {
> (2)         if (&User-Name =~ / /) {
> (2)         if (&User-Name =~ / /)  -> TRUE
> (2)         if (&User-Name =~ / /)  {
> (2)           update request {
> (2)             &Module-Failure-Message += 'Rejected: User-Name contains whitespace'
> (2)           } # update request = noop

It does help to actually read the debug output, which is telling you 
exactly what the problem is.

If you don't want the filter_username policy, remove it from the 
configuration.

-- 
Matthew


More information about the Freeradius-Users mailing list