Re: freeradius auth logging (rlm_detail)
You'll have to change rlm_detail. I created an rlm_syslog module which allows you to include some extra fields via xlat. I'm sure you could do something similar to rlm_detail. In my case, I added a char* logextra to the struct and then: if (inst->logextra != NULL) { radius_xlat(extra, sizeof(extra), inst->logextra, request, NULL) ; DEBUG2("rlm_syslog: %s expands to %s", inst->logextra, extra); splitstr = strtok(extra, ","); while (splitstr != NULL) { strcat(result, splitstr); strcat(result, divider); splitstr = strtok(NULL, ","); } } In my case I'm building a string (you'd want to fprintf(outfp,"")), but I just supply a logextra = "" option in the detail {} section of the config file, where the value can be any xlat-expandable attributes, eg. logextra = "NAS-IP-Address = %{NAS-IP-Address},Nas-Port = %{NAS-Port}" ???????, ?? ???????? wrote:
Hi! Is it possible to log more detailed information about radius response packet for authorization? At the moment it looks like:
Packet-Type = Access-Accept Wed Mar 8 10:25:57 2006 Auth-Type = Accept
But how can I know, for which request it has responsed? Can I log the "Authenticator"? (Both, in the request and in the response?)
------------------------------------------------------------------------------- http://www.one.lv - Tavs mobilais e-pasts!
Tagad lasi savu e-pastu ar mobilo telefonu - wap.one.lv! - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (1)
-
Geoff Silver