]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More appropriate debug message types / levels
authorNick Porter <nick@portercomputing.co.uk>
Fri, 9 Feb 2024 18:10:07 +0000 (18:10 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 12 Feb 2024 11:34:17 +0000 (11:34 +0000)
src/modules/rlm_winbind/rlm_winbind.c

index e8e1691ba275cf307fe35641cf7b46e99c960655..2e9d3be642ba655ea92881d2fd03448e988f0a93 100644 (file)
@@ -164,7 +164,7 @@ static bool winbind_check_group(rlm_winbind_t const *inst, request_t *request, c
                goto error;
        }
 
-       REDEBUG2("Trying to find user \"%s\" in group \"%s\"", username, name);
+       RDEBUG2("Trying to find user \"%s\" in group \"%s\"", username, name);
 
        err = wbcCtxGetGroups(wb_ctx, username, &num_groups, &wb_groups);
        switch (err) {
@@ -224,7 +224,7 @@ static bool winbind_check_group(rlm_winbind_t const *inst, request_t *request, c
                        continue;
                }
 
-               REDEBUG2("Resolved GID %i to name \"%s\"", wb_groups[i], group->gr_name);
+               RDEBUG3("Resolved GID %i to name \"%s\"", wb_groups[i], group->gr_name);
 
                /* Find the backslash in the returned group name */
                if ((backslash < strlen(group->gr_name)) && (group->gr_name[backslash] == '\\')) {
@@ -237,9 +237,9 @@ static bool winbind_check_group(rlm_winbind_t const *inst, request_t *request, c
                }
 
                /* See if the group matches */
-               REDEBUG2("Checking plain group name \"%s\"", group_name);
+               RDEBUG3("Checking plain group name \"%s\"", group_name);
                if (!strcasecmp(group_name, name)) {
-                       REDEBUG2("Found matching group: %s", group_name);
+                       RDEBUG2("Found matching group: %s", group_name);
                        rcode = true;
                }
                wbcFreeMemory(group);
@@ -248,7 +248,7 @@ static bool winbind_check_group(rlm_winbind_t const *inst, request_t *request, c
                if (rcode) break;
        }
 
-       if (!rcode) REDEBUG2("No groups found that match");
+       if (!rcode) RWDEBUG2("No groups found that match");
 
 finish:
        wbcFreeMemory(wb_groups);