dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0153-GPO-Set-libsmb-debugging-to-stderr.patch

905b4d
From 0af3ec742fd3d160d8b6ccc81a368e851456d61c Mon Sep 17 00:00:00 2001
905b4d
From: Jakub Hrozek <jhrozek@redhat.com>
905b4d
Date: Tue, 6 Jan 2015 16:54:44 +0100
905b4d
Subject: [PATCH 153/160] GPO: Set libsmb debugging to stderr
905b4d
905b4d
libsmb logs to stdout by default. It's much more reasonable to log to
905b4d
stderr by default.
905b4d
905b4d
Please also note:
905b4d
    https://bugzilla.samba.org/show_bug.cgi?id=11036
905b4d
and:
905b4d
    https://fedorahosted.org/sssd/ticket/2544
905b4d
905b4d
Reviewed-by: Sumit Bose <sbose@redhat.com>
905b4d
(cherry picked from commit bb7ddd2be9847bfb07395341c7623da1b104b8a6)
905b4d
---
905b4d
 src/providers/ad/ad_gpo_child.c | 1 +
905b4d
 1 file changed, 1 insertion(+)
905b4d
905b4d
diff --git a/src/providers/ad/ad_gpo_child.c b/src/providers/ad/ad_gpo_child.c
905b4d
index 4bb48c0479400ebeeca287acfcb1573c69a76b90..c6eb52f06b1daadb083bd4c9efb299a12031d4d5 100644
905b4d
--- a/src/providers/ad/ad_gpo_child.c
905b4d
+++ b/src/providers/ad/ad_gpo_child.c
905b4d
@@ -601,6 +601,7 @@ perform_smb_operations(int cached_gpt_version,
905b4d
         goto done;
905b4d
     }
905b4d
 
905b4d
+    smbc_setOptionDebugToStderr(smbc_ctx, 1);
905b4d
     smbc_setFunctionAuthData(smbc_ctx, sssd_krb_get_auth_data_fn);
905b4d
     smbc_setOptionUseKerberos(smbc_ctx, 1);
905b4d
 
905b4d
-- 
905b4d
2.1.0
905b4d