s3:auth_sam: unify the debug messages of all auth_sam*_auth() functions
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Jan 2020 15:13:59 +0000 (16:13 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 5 Feb 2020 16:30:42 +0000 (16:30 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14247

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/auth/auth_sam.c

index bf93f19aa774bfa47d5d03f0bf458850e63ce3b8..91cc85544be683ab6a8abdc335f540865ffc6efb 100644 (file)
@@ -35,6 +35,11 @@ static NTSTATUS auth_sam_ignoredomain_auth(const struct auth_context *auth_conte
        if (!user_info || !auth_context) {
                return NT_STATUS_UNSUCCESSFUL;
        }
+
+       DBG_DEBUG("Check auth for: [%s]\\[%s]\n",
+                 user_info->mapped.domain_name,
+                 user_info->mapped.account_name);
+
        return check_sam_security(&auth_context->challenge, mem_ctx,
                                  user_info, server_info);
 }
@@ -75,7 +80,9 @@ static NTSTATUS auth_samstrict_auth(const struct auth_context *auth_context,
                return NT_STATUS_LOGON_FAILURE;
        }
 
-       DEBUG(10, ("Check auth for: [%s]\n", user_info->mapped.account_name));
+       DBG_DEBUG("Check auth for: [%s]\\[%s]\n",
+                 user_info->mapped.domain_name,
+                 user_info->mapped.account_name);
 
        is_local_name = is_myname(user_info->mapped.domain_name);
        is_my_domain  = strequal(user_info->mapped.domain_name, lp_workgroup());