diff options
author | kolla <kolla> | 2009-04-24 14:32:57 +0000 |
---|---|---|
committer | kolla <kolla@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2009-04-24 14:32:57 +0000 |
commit | 47fffc61b18323e236683379e325be1bb27d2a01 (patch) | |
tree | 6a8ff390d11a2637765b243f948dc1a080dc950c | |
parent | 9021bfc29dd478c7ea99a248ab29e7400e0ac3e7 (diff) |
Added contributed patch by Maja Wolniewicz <mgw@umk.pl>
It adds the information about the client side to Access-Accept /
Access-Reject line in log.
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.3@501 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | radsecproxy.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index c97758c..831b5a2 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1633,21 +1633,21 @@ void replyh(struct server *server, unsigned char *buf) { replymsg = radattr2ascii(radmsg_gettype(msg, RAD_Attr_Reply_Message)); if (stationid) { if (replymsg) { - debug(DBG_WARN, "%s for user %s stationid %s from %s (%s)", - radmsgtype2string(msg->code), username, stationid, server->conf->name, replymsg); + debug(DBG_WARN, "%s for user %s stationid %s from %s (%s) to %s (%s)", + radmsgtype2string(msg->code), username, stationid, server->conf->name, replymsg, from->conf->name, addr2string(from->addr)); free(replymsg); } else - debug(DBG_WARN, "%s for user %s stationid %s from %s", - radmsgtype2string(msg->code), username, stationid, server->conf->name); + debug(DBG_WARN, "%s for user %s stationid %s from %s to %s (%s)", + radmsgtype2string(msg->code), username, stationid, server->conf->name, from->conf->name, addr2string(from->addr)); free(stationid); } else { if (replymsg) { - debug(DBG_WARN, "%s for user %s from %s (%s)", - radmsgtype2string(msg->code), username, server->conf->name, replymsg); + debug(DBG_WARN, "%s for user %s from %s (%s) to %s (%s)", + radmsgtype2string(msg->code), username, server->conf->name, replymsg, from->conf->name, addr2string(from->addr)); free(replymsg); } else - debug(DBG_WARN, "%s for user %s from %s", - radmsgtype2string(msg->code), username, server->conf->name); + debug(DBG_WARN, "%s for user %s from %s to %s (%s)", + radmsgtype2string(msg->code), username, server->conf->name, from->conf->name, addr2string(from->addr)); } free(username); } |