users file case sensitive
Gregg Douglas
douglagm at gmail.com
Wed Sep 19 11:33:02 CEST 2012
On Wed, Sep 19, 2012 at 9:42 AM, Alan DeKok <aland at deployingradius.com>wrote:
> Gregg Douglas wrote:
> > Hi,
> >
> > If I use the suggestion as follows in the my files file, the users file
> > is still case sensitive:
> >
> > myfiles {
>
> That is not quite correct.
>
> You can edit the default "files" configuration. It has a
> commented-out example of using the key. Uncomment it, and replace it
> with the text below.
>
> > key = "%{lower:%{User-Name}}"
> ...
>
I have added the line, files content:
files {
key = "%{lower:%{User-Name}}"
usersfile = ${confdir}/users
acctusersfile = ${confdir}/acct_users
preproxy_usersfile = ${confdir}/preproxy_users
compat = no
}
Ran radiusd -XX
Wed Sep 19 11:18:59 2012 : Info: [files] WARNING: Unknown module "lower" in
string expansion "%{lower:%{User-Name}}"
Wed Sep 19 11:18:59 2012 : Info: [files] expand:
%{lower:%{User-Name}} ->
Wed Sep 19 11:18:59 2012 : Debug: rlm_ldap: Entering ldap_groupcmp()
Wed Sep 19 11:18:59 2012 : Info: [files] expand: o=USERS -> o=USERS
Wed Sep 19 11:18:59 2012 : Info: [files] WARNING: Deprecated conditional
expansion ":-". See "man unlang" for details
Wed Sep 19 11:18:59 2012 : Info: [files] expand:
(cn=%{Stripped-User-Name:-%{User-Name}}) -> (cn=PIET)
> > When I use ntradping with the username all in upper case - PIET, I get
> > the following:
>
> Well, read the full debug log to see what's going on. Is it parsing
> the "key" field? Is it using the "myfiles" module instead of "file
> The underlying code in the "files" module is case-sensitive. So if
> you get the case right, and configured right, then it should work.
>
> Alan DeKok.
> -
> 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/61557a54/attachment-0001.html>
More information about the Freeradius-Users
mailing list