Move proxying message to after checks for LOCAL realm
authoraland <aland>
Thu, 17 Apr 2008 08:11:23 +0000 (08:11 +0000)
committeraland <aland>
Thu, 17 Apr 2008 08:11:23 +0000 (08:11 +0000)
src/modules/rlm_realm/rlm_realm.c

index 9246968..c73bedf 100644 (file)
@@ -193,9 +193,6 @@ static int check_for_realm(void *instance, REQUEST *request, REALM **returnrealm
                request->username = vp;
        }
 
-       DEBUG2("    rlm_realm: Proxying request from user %s to realm %s",
-              username, realm->name);
-
        /*
         *      Add the realm name to the request.
         */
@@ -233,6 +230,9 @@ static int check_for_realm(void *instance, REQUEST *request, REALM **returnrealm
                break;
        }
 
+       DEBUG2("    rlm_realm: Proxying request from user %s to realm %s",
+              username, realm->name);
+
        /*
         *      Skip additional checks if it's not an accounting
         *      request.