Rejecting users without a realm

Alan DeKok aland at deployingradius.com
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 realm.com 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?

  Regex?

authorize {
	...

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

	suffix
	...
}

  Alan DeKok.



More information about the Freeradius-Users mailing list