Hello,
I have a small problem using %f variable in an acct_users entry. The entry
looks like:
mydemouser Acct-Status-Type == Start
Exec-Program = "/usr/local/bin/mydemoscript %u %f %I"
My expectation was that %f gives me the same IP address I receive in the
radacct protocol. But I end up with "?.?.?.?" and have no idea why.
What am I doing wrong?
Regards,
Stephan
PS: If you happen to wonder what "%I" means ... :
--- src/main/xlat.c-orig Wed Aug 27 16:00:59 2003
+++ src/main/xlat.c Wed Aug 27 16:01:23 2003
@@ -457,6 +457,10 @@
q +=
valuepair2str(q,freespace,pairfind(request->packet->vps,PW_CALLING_STATION_ID),PW_TYPE_STRING,
func);
p++;
break;
+ case 'I': /* Calling station ID */
+ q +=
valuepair2str(q,freespace,pairfind(request->packet->vps,PW_CALLED_STATION_ID),PW_TYPE_STRING,
func);
+ p++;
+ break;
case 'l': /* request timestamp */
snprintf(tmpdt, sizeof(tmpdt),
"%lu",request->timestamp);
strNcpy(q,tmpdt,freespace);
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html