[PATCH] gensec: Change log level of message when no PAC is found

Christof Schmitt cs at samba.org
Fri Apr 29 20:24:03 UTC 2016


From ee44746c82e33e9596a30333c33e36edb7058c28 Mon Sep 17 00:00:00 2001
From: Christof Schmitt <cs at samba.org>
Date: Thu, 28 Apr 2016 11:23:41 -0700
Subject: [PATCH] gensec: Change log level of message when no PAC is found

For a Samba server that uses a non-AD KDC this message is triggered on
every new connection. Change the log level from warning/1 to a more
appropriate notice/5.

Signed-off-by: Christof Schmitt <cs at samba.org>
---
 auth/gensec/gensec_util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/auth/gensec/gensec_util.c b/auth/gensec/gensec_util.c
index 64fffb1..da2e2e5 100644
--- a/auth/gensec/gensec_util.c
+++ b/auth/gensec/gensec_util.c
@@ -48,8 +48,8 @@ NTSTATUS gensec_generate_session_info_pac(TALLOC_CTX *mem_ctx,
 				  principal_string));
 			return NT_STATUS_ACCESS_DENIED;
 		}
-		DEBUG(1, ("Unable to find PAC for %s, resorting to local user lookup\n",
-			  principal_string));
+		DBG_NOTICE("Unable to find PAC for %s, resorting to local "
+			   "user lookup\n", principal_string);
 	}
 
 	if (gensec_security->auth_context && gensec_security->auth_context->generate_session_info_pac) {
-- 
1.8.3.1



More information about the samba-technical mailing list