Added contributed patch by Maja Wolniewicz <mgw@umk.pl>
authorkolla <kolla>
Fri, 24 Apr 2009 14:33:12 +0000 (14:33 +0000)
committerkolla <kolla@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Fri, 24 Apr 2009 14:33:12 +0000 (14:33 +0000)
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/trunk@502 e88ac4ed-0b26-0410-9574-a7f39faa03bf

radsecproxy.c

index be5730b..ff2b51f 100644 (file)
@@ -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);
        }