update NAS-Identifier in Access-Request before proxying to other radius server
I want to update NAS-Identifier in Access-Request before proxying to other radius server. Tried adding the following lines in default but in vain. So, where should I put the following unlang? update request { NAS-Identifier = "new-nas-identifier" }
C.F. Yeung wrote:
I want to update NAS-Identifier in Access-Request before proxying to other radius server. Tried adding the following lines in default but in vain.
WHERE? Just some random place? Or did you READ the file, and look for "proxy". If you had done that, the solution would be obvious.
So, where should I put the following unlang?
update request { NAS-Identifier = "new-nas-identifier" }
Read "man unlang". You want to use ":=", not "=" Alan DeKok.
Have changed the unlang as follow. update request { NAS-Identifier := "new-nas-identifier" } Tried put it under authorize, pre-proxy or post-proxy, nothing changed. On Tue, Jun 5, 2012 at 2:45 PM, Alan DeKok <aland@deployingradius.com>wrote:
C.F. Yeung wrote:
I want to update NAS-Identifier in Access-Request before proxying to other radius server. Tried adding the following lines in default but in vain.
WHERE? Just some random place?
Or did you READ the file, and look for "proxy". If you had done that, the solution would be obvious.
So, where should I put the following unlang?
update request { NAS-Identifier = "new-nas-identifier" }
Read "man unlang". You want to use ":=", not "="
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
C.F. Yeung wrote:
Have changed the unlang as follow.
update request { NAS-Identifier := "new-nas-identifier" }
Tried put it under authorize, pre-proxy or post-proxy, nothing changed.
So... you didn't follow my instructions. Rather than READING the documentation, you tried a bunch of random things. See the FAQ for "it doesn't work". See "man unlang" for how to update proxied requests. This is documented. No, I won't cut & paste the relevant documentation here. Alan DeKok.
Thanks Alan, I have figured out the problem. On Tue, Jun 5, 2012 at 5:00 PM, Alan DeKok <aland@deployingradius.com>wrote:
C.F. Yeung wrote:
Have changed the unlang as follow.
update request { NAS-Identifier := "new-nas-identifier" }
Tried put it under authorize, pre-proxy or post-proxy, nothing changed.
So... you didn't follow my instructions. Rather than READING the documentation, you tried a bunch of random things.
See the FAQ for "it doesn't work".
See "man unlang" for how to update proxied requests.
This is documented.
No, I won't cut & paste the relevant documentation here.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
C.F. Yeung