s3:auth: Add missing newlines to logging messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 7 Aug 2023 04:34:27 +0000 (16:34 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:37 +0000 (04:39 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/auth/auth_samba4.c
source3/auth/auth_util.c
source3/auth/pampass.c

index 5039e56e30dc010e7ad8f5c7db0e4483c2e23642..bae34e521c4f93885bb9c4b31a7fe1ecce71ae24 100644 (file)
@@ -259,7 +259,7 @@ static NTSTATUS prepare_gensec(const struct auth_context *auth_context,
        server_credentials
                = cli_credentials_init_server(frame, lp_ctx);
        if (!server_credentials) {
-               DEBUG(1, ("Failed to init server credentials"));
+               DEBUG(1, ("Failed to init server credentials\n"));
                TALLOC_FREE(frame);
                return NT_STATUS_INVALID_SERVER_STATE;
        }
index 293523f4272d67b55029c07d7511195d790befc9..4eb82519d7b2351ad70b4155ef5fc9de6959a664 100644 (file)
@@ -2149,7 +2149,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
                if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_SUCH_USER) &&
                    (lp_security() == SEC_ADS || lp_security() == SEC_DOMAIN) &&
                    lp_map_to_guest() == MAP_TO_GUEST_ON_BAD_UID) {
-                       DBG_NOTICE("Try to map %s to guest account",
+                       DBG_NOTICE("Try to map %s to guest account\n",
                                   nt_username);
                        nt_status = make_server_info_guest(tmp_ctx, &result);
                        if (NT_STATUS_IS_OK(nt_status)) {
index 15025e7f1d48a2428f286dc8cc0b1b4ca732fa55..5372626d5db59ff4e032b54f686f961eaace3e34 100644 (file)
@@ -110,7 +110,7 @@ static bool smb_pam_nt_status_error_handler(pam_handle_t *pamh, int pam_error,
        if (NT_STATUS_IS_OK(*nt_status)) {
                /* Complain LOUDLY */
                DEBUG(0, ("smb_pam_nt_status_error_handler: PAM: BUG: PAM and NT_STATUS \
-error MISMATCH, forcing to NT_STATUS_LOGON_FAILURE"));
+error MISMATCH, forcing to NT_STATUS_LOGON_FAILURE\n"));
                *nt_status = NT_STATUS_LOGON_FAILURE;
        }
        return False;
@@ -469,7 +469,7 @@ static bool smb_pam_end(pam_handle_t *pamh, struct pam_conv *smb_pam_conv_ptr)
                        return True;
                }
        }
-       DEBUG(2,("smb_pam_end: PAM: not initialised"));
+       DEBUG(2,("smb_pam_end: PAM: not initialised\n"));
        return False;
 }