Unlang statement

Matthew Newton mcn4 at leicester.ac.uk
Fri May 27 11:55:54 CEST 2016


On Fri, May 27, 2016 at 09:50:53AM +0000, Clement Ogedengbe wrote:
> Can someone please help me with unlang statement that rejects
> users (without bothering to carry out authentication) if the
> User-Name ends with "XYZ"

if (&User-Name =~ /XYZ$/) {
  reject
}

See man unlang.

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list