Rejecting users without a realm

Alan DeKok aland at
Fri Feb 26 16:31:23 CET 2010

Mike Diggins wrote:
> I couldn't find an answer to this question in the Archives. I have a
> FreeRadius Server (2.1.3) and would like it to reject *any* user that
> attempts login with a realm (user at for example). I thought I
> could do something like this in the user file:
> DEFAULT Realm == "NULL", Auth-Type := Reject
> But it doesn't work. What's the best way to do this?


authorize {

	if (User-Name !~ /@/) {


  Alan DeKok.

More information about the Freeradius-Users mailing list