]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: ntlm_auth: Don't corrupt the output stream with debug messages.
authorJeremy Allison <jra@samba.org>
Sat, 10 Dec 2016 21:56:18 +0000 (13:56 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 2 Jan 2017 10:56:53 +0000 (11:56 +0100)
Calling programs expect to cleanly read from STDOUT.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12467

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 9fbd544b90c2b27985637a9bb3fa520f891f8696)

Autobuild-User(v4-4-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-4-test): Thu Dec 15 12:21:27 CET 2016 on sn-devel-144

source3/utils/ntlm_auth.c

index b65493b27ba1c1f071bdd5dfaccd6ebd68a017a1..653be45aa3c8b193558e3fd833ef46660b162501 100644 (file)
@@ -291,7 +291,7 @@ static char winbind_separator(void)
 
        if (winbindd_request_response(NULL, WINBINDD_INFO, NULL, &response) !=
            NSS_STATUS_SUCCESS) {
-               d_printf("could not obtain winbind separator!\n");
+               d_fprintf(stderr, "could not obtain winbind separator!\n");
                return *lp_winbind_separator();
        }
 
@@ -299,7 +299,7 @@ static char winbind_separator(void)
        got_sep = True;
 
        if (!sep) {
-               d_printf("winbind separator was NULL!\n");
+               d_fprintf(stderr, "winbind separator was NULL!\n");
                return *lp_winbind_separator();
        }
 
@@ -493,7 +493,7 @@ static bool check_plaintext_auth(const char *user, const char *pass,
 
        if (stdout_diagnostics) {
                if ((result != NSS_STATUS_SUCCESS) && (response.data.auth.nt_status == 0)) {
-                       d_printf("Reading winbind reply failed! (0x01)\n");
+                       d_fprintf(stderr, "Reading winbind reply failed! (0x01)\n");
                }
 
                d_printf("%s: %s (0x%x)\n",