upgrade broke the users file - being read only partially - FR1.1.7 to FR2.0.2
Note: forwarded message attached. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Agent Smith wrote:
user1 Auth-Type = Local, Cleartext-Password = "abc123", Huntgroup-Name == "fetch"
This should be: user1 Cleartext-Password := "abc123", Huntgroup-Name ... i.e. Don't set Auth-Type. This will work in 1.1.7, too.
========================================================= huntgroups file ---------------- fetch Client-IP-Address == "10.9.3.29"
Hmmm... the code supporting Client-IP-Address was changed a bit. I think that may need to be reverted to the way it worked in 1.1.7. If you change this to Packet-Src-IP-Address == 10.9.3.29, it should work.
authenticate { files
I'm not sure why you have that there. You SHOULD have at least the "pap" module here, and as the last module in the "authorize" section. Alan DeKok.
No love man. Changed the huntgroup defination and also changed the sites-enabled/SERVER-1760 file to read. .... authorize { files #auth_log pap } authenticate { files # I also tried it without files here. pap } .... Debug output ------------- Ready to process requests. rad_recv: Access-Request packet from host 10.9.3.29 port 32889, id=174, length=61 User-Name = "user1" User-Password = "abc123" NAS-IP-Address = 255.255.255.255 NAS-Port = 171 server SERVER-1760 { +- entering group authorize expand: %{User-Name} -> user1 users: Matched entry DEFAULT at line 8 ++[files] returns ok rlm_pap: Found existing Auth-Type, not changing it. ++[pap] returns noop rad_check_password: Found Auth-Type Reject rad_check_password: Auth-Type = Reject, rejecting user auth: Failed to validate the user. Login incorrect: [user1/abc123] (from client my-linux port 171) } # server SERVER-1760 Delaying reject of request 0 for 1 seconds Going to the next request Waking up in 0.9 seconds. Sending delayed reject for request 0 Sending Access-Reject of id 174 to 10.9.3.29 port 32889 Waking up in 4.9 seconds. Cleaning up request 0 ID 174 with timestamp +8 Ready to process requests. --- Alan DeKok <aland@deployingradius.com> wrote:
Agent Smith wrote:
user1 Auth-Type = Local, Cleartext-Password = "abc123", Huntgroup-Name == "fetch"
This should be:
user1 Cleartext-Password := "abc123", Huntgroup-Name ...
i.e. Don't set Auth-Type.
This will work in 1.1.7, too.
=========================================================
huntgroups file ---------------- fetch Client-IP-Address == "10.9.3.29"
Hmmm... the code supporting Client-IP-Address was changed a bit. I think that may need to be reverted to the way it worked in 1.1.7.
If you change this to Packet-Src-IP-Address == 10.9.3.29, it should work.
authenticate { files
I'm not sure why you have that there.
You SHOULD have at least the "pap" module here, and as the last module in the "authorize" section.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Agent Smith wrote:
No love man.
Changed the huntgroup defination and also changed the sites-enabled/SERVER-1760 file to read.
.... authorize { files #auth_log pap }
authenticate { files # I also tried it without files here. pap }
You've massively broke the default config; this is completely wrong. "files" doesn't work or do anything in the "authenticate" section, and "pap" should be inside an "Auth-Type PAP" stanza. I suggest you go back to the default config and make small changes towards your goal, one at time and testing each change.
....
Debug output -------------
Ready to process requests. rad_recv: Access-Request packet from host 10.9.3.29 port 32889, id=174, length=61 User-Name = "user1" User-Password = "abc123" NAS-IP-Address = 255.255.255.255 NAS-Port = 171 server SERVER-1760 { +- entering group authorize expand: %{User-Name} -> user1 users: Matched entry DEFAULT at line 8
The entry on line 8 of the users file rejected the user.
Hi,
No love man.
Changed the huntgroup defination and also changed the sites-enabled/SERVER-1760 file to read.
did you edit the users file according to the instructions too? ..the debug logs suggest otherwise alan
Yes I did make that change. What in the output suggested I didn't? I don't know what the deal is, it seems odd that it will read the file and proxy my requests but failed to authenticate a locally defined user in the file. anyways, I went back to 1.1.7 which seems to work fine, I usually stay away from blazing edge versions anyways but I really liked the virtual server functionality and wanted to try 2 because I have like 5 instances of radius running all on different ports and it'd be nice to do it all in one process. oh well. --- A.L.M.Buxey@lboro.ac.uk wrote:
Hi,
No love man.
Changed the huntgroup defination and also changed
the
sites-enabled/SERVER-1760 file to read.
did you edit the users file according to the instructions too? ..the debug logs suggest otherwise
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Hi,
Yes I did make that change. What in the output suggested I didn't?
Auth-Type already set
I don't know what the deal is, it seems odd that it will read the file and proxy my requests but failed to authenticate a locally defined user in the file.
its matching on line * (iirc) the users file. and failing because of that alan
Hi Our current RADIUS Server is unable to configure some VSAs dynamically for me. It will be substituted by FR in the near future, but in the meantime, I have to support the VSAs for my new NAS. I'd like to use FreeRADIUS as a Proxy Server to add/delete Attributes and/or modify their values. What would be a good start to read about how to configure it. Thanks Regards Stefan
Stefan A. wrote:
Our current RADIUS Server is unable to configure some VSAs dynamically for me. It will be substituted by FR in the near future, but in the meantime, I have to support the VSAs for my new NAS.
It's nice to hear that you're planning on moving to a real server. :)
I'd like to use FreeRADIUS as a Proxy Server to add/delete Attributes and/or modify their values.
Yup. That can be done.
What would be a good start to read about how to configure it.
My web site has some good pages. Also: $ man radiusd $ man unlang $ man rlm_attr_filter The attribute editing functionality in "unlang" is a little awkward, and may not do everything you need. The "attr_filter" module may have a little more expressive power for what you need. I suggest using 2.0.2 and the virtual server functionality. And doing *gradual* edits to your configuration. Alan DeKok.
participants (5)
-
A.L.M.Buxey@lboro.ac.uk -
Agent Smith -
Alan DeKok -
Phil Mayers -
Stefan A.