From: Stefan Metzmacher Date: Thu, 23 Jan 2020 15:13:59 +0000 (+0100) Subject: s3:auth_sam: unify the debug messages of all auth_sam*_auth() functions X-Git-Tag: samba-4.10.14~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33b37926b253e0408a03f5fa04a8231c472f08d5;p=thirdparty%2Fsamba.git s3:auth_sam: unify the debug messages of all auth_sam*_auth() functions BUG: https://bugzilla.samba.org/show_bug.cgi?id=14247 Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider (cherry picked from commit 72ef8d3a52c1ab07c079a4c014ba8ac7bff528f7) --- diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c index 1ccaededc2d..56f28ab94a6 100644 --- a/source3/auth/auth_sam.c +++ b/source3/auth/auth_sam.c @@ -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); } @@ -72,7 +77,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());