Log invalid user for proxy authentication rejects, too.
authoraland <aland>
Mon, 13 Aug 2001 20:32:30 +0000 (20:32 +0000)
committeraland <aland>
Mon, 13 Aug 2001 20:32:30 +0000 (20:32 +0000)
Bug found by VISP Systems Administration <help@visp.net>

src/main/auth.c

index 649ee4f..33a5191 100644 (file)
@@ -421,7 +421,7 @@ int rad_authenticate(REQUEST *request)
         *      pairs from the server to the initial reply.
         */
        if ((request->proxy_reply) &&
-                       (request->packet->code == PW_AUTHENTICATION_REQUEST)) {
+           (request->packet->code == PW_AUTHENTICATION_REQUEST)) {
                tmp = paircreate(PW_AUTHTYPE, PW_TYPE_INTEGER);
                if (tmp == NULL) {
                        radlog(L_ERR|L_CONS, "no memory");
@@ -454,6 +454,7 @@ int rad_authenticate(REQUEST *request)
                 *      done by the server, by rejecting them here.
                 */
                if (request->proxy_reply->code != PW_AUTHENTICATION_ACK) {
+                       rad_authlog("Home server says invalid user", request, 0);
                        request->reply->code = PW_AUTHENTICATION_REJECT;
                        return RLM_MODULE_REJECT;
                }