users file case sensitive

Gregg Douglas douglagm at gmail.com
Wed Sep 19 11:57:23 CEST 2012


>
>
> >>files {
> >>         key = "%{lower:%{User-Name}}"
>
> >> Wed Sep 19 11:18:59 2012 : Info: [files] WARNING: Unknown module
> "lower" in
> >> string expansion "%{lower:%{User-Name}}"
>
> >Peeking at raddb/policy.conf, it seems you should use "tolower"
> >instead of "lower" instead.
>
> Still does the same:

Wed Sep 19 11:54:04 2012 : Info: [files] WARNING: Unknown module "tolower"
in string expansion "%{tolower:%{User-Name}}"
Wed Sep 19 11:54:04 2012 : Info: [files]        expand:
%{tolower:%{User-Name}} ->
Wed Sep 19 11:54:04 2012 : Debug: rlm_ldap: Entering ldap_groupcmp()
Wed Sep 19 11:54:04 2012 : Info: [files]        expand: o=USERS -> o=USERS
Wed Sep 19 11:54:04 2012 : Info: [files] WARNING: Deprecated conditional
expansion ":-".  See "man unlang" for details
Wed Sep 19 11:54:04 2012 : Info: [files]        expand:
(cn=%{Stripped-User-Name:-%{User-Name}}) -> (cn=piet)

My policy.conf:
policy {
        forbid_eap {
                if (EAP-Message) {
                        reject
                }
        }

        permit_only_eap {
                if (!EAP-Message) {
                        if (!"%{outer.request:EAP-Message}") {
                                reject
                        }
                }
        }

        deny_realms {
                if (User-Name =~ /@|\\/) {
                        reject
                }
        }
}



> --
> Fajar
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120919/43e3aa4b/attachment.html>


More information about the Freeradius-Users mailing list