NULL realm reject
Velpi
velpi at industria.be
Mon Jul 5 13:59:41 CEST 2010
>> is it possible to configure an instant reject for a certain realm
>> I'd like to set this for the NULL realm to disable
>> usernames without a suffix. (any other suggestion to accomplish this is
>> welcomed too!)
>
> You can put this into the "authorize" section, after the "realm" modules:
>
> if (Realm == NULL) {
> reject
> }
>
"
Mon Jul 5 13:53:47 2010 : Info: ++? if (Realm == NULL)
Mon Jul 5 13:53:47 2010 : Info: (Attribute Realm was not found)
"
If I use expansion:
"
Mon Jul 5 13:57:39 2010 : Info: ++? if ("%{Realm}" == NULL)
Mon Jul 5 13:57:39 2010 : Info: expand: %{Realm} ->
Mon Jul 5 13:57:39 2010 : Info: ? Evaluating ("%{Realm}" == NULL) -> FALSE
Mon Jul 5 13:57:39 2010 : Info: ++? if ("%{Realm}" == NULL) -> FALSE
"
Can I do expansion from a certain module that will provide Realm?
How do I find out which modules can provide which variables?
Thanks!
--
/---------------------------------------------
| Jan "Velpi" Van der Velpen
| Velpi at industria.be || +32 (0) 498 61 24 89
\---------------------------------------------
More information about the Freeradius-Users
mailing list