Rejecting users without a realm
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@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? -Mike
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@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.
participants (2)
-
Alan DeKok -
Mike Diggins