Help on Users file, Group name and Pool-Name
Xiaochen Jing
xjing at datavalet.com
Thu Oct 16 15:58:18 CEST 2008
Hello all,
I encountered a strange problem while editing "users" file.
I have Freeradius 2.0.5 and MS SQL working together. When a request coming
in, Freeradius forwards it to MS SQL for authentication of username and
password, and Freeradius reads Group Name attribute saved in MS SQL. My goal
is to have each username associated to a Group Name. Then based on Group
Name, Freeradius decides what IP pool to use, and choose the proper
Pool-Name attribute.
So in "users" file, I created the following:
DEFAULT Group := "doctor", Pool-Name :=
"julienne"-----------------line133
Group := "dentist", Pool-Name :=
"netplus"-----------------line134
Group := "staff", Pool-Name :=
"staffnet"-------------------line135
When I execute Freeradius, I got the following error:
/usr/local/etc/raddb/users[135]: Syntax error: Previous line is missing a
trailing comma for entry DEFAULT
root at Server1:/usr/local/etc/raddb# Errors reading /usr/local/etc/raddb/users
/usr/local/etc/raddb/radiusd.conf[1085]: Instantiation failed for module
"files"
/usr/local/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module
"files".
/usr/local/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing
authorize section.
}
}
Errors initializing modules
It seems we need a comma at the end of the line which is not right for check
items. So instead of doing that, I changed the sentenses to the following,
in "users" file:
DEFAULT Group := "doctor", Pool-Name := "julienne"
DEFAULT Group := "dentist", Pool-Name := "netplus"
Group := "staff", Pool-Name := "staffnet"
This time everything works just fine. I successfully execute Freeradius, and
for every user in either of the three groups, Freeradius uses proper
Pool-Name to fine IP pool, and user gets a proper IP address falling into
that pool.
So can anyone shed some lights on this? Why it returns two results after I
do that change? Seems DEFAULT can only have two lines?
Thanks in advance
XJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20081016/d49621a6/attachment.html>
More information about the Freeradius-Users
mailing list