On Feb 11, 2022, at 9:41 AM, Alan DeKok <aland@deployingradius.com> wrote:
On Feb 10, 2022, at 11:06 AM, amine mustapha smaali <amine_mustapha@hotmail.com> wrote:
FYI, I used map function given in json module but I'm getting the following error when I start my freeradius server. here is what I tried in my json module:
map json "%(rest:POST http://172.26.111.160/rest/hss/wlan/getAuthenticationVector/%{User-Name})" {
You don't put that into the json module. You put it into a processing section. i.e. something in sites-enabled/
i.e. send Challenge-Request { map json "%(rest:POST http://172.26.111.160/rest/hss/wlan/getAuthenticationVector/%{session-state.Permanent-Identity)" { &AUTN := '$._AUTN' &CK := '$._CK' &IK := '$._IK' &RAND := '$._RAND' &XRES := '$._XRES' } } Note User-Name is the wrong attribute to use here, it's only the RADIUS User-Name and not available inside the eap-aka-sim virtual server. You want session-state.Permanent-Identity which id derived from the EAP Identity Response, or as the result of looking up/decoding/decrypting a pseudonym or fast reauth ID. -Arran