auth: Add missing newlines to logging messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 31 Jul 2023 04:06:56 +0000 (16:06 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:36 +0000 (04:39 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/auth_sam_reply.c
auth/credentials/credentials.c

index 8825ae8f83dcbb787e6f1e7e414e9ae5cac67533..27f04e86434c9fa9f0b626aa569d86895045082b 100644 (file)
@@ -697,7 +697,7 @@ NTSTATUS make_user_info_dc_netlogon_validation(TALLOC_CTX *mem_ctx,
           matches.
        */
        if (!base->domain_sid) {
-               DEBUG(0, ("Cannot operate on a Netlogon Validation without a domain SID"));
+               DEBUG(0, ("Cannot operate on a Netlogon Validation without a domain SID\n"));
                talloc_free(user_info_dc);
                return NT_STATUS_INVALID_PARAMETER;
        }
@@ -899,7 +899,7 @@ NTSTATUS make_user_info_dc_pac(TALLOC_CTX *mem_ctx,
                */
                if (rg->domain_sid == NULL) {
                        talloc_free(user_info_dc);
-                       DEBUG(0, ("Cannot operate on a PAC without a resource domain SID"));
+                       DEBUG(0, ("Cannot operate on a PAC without a resource domain SID\n"));
                        return NT_STATUS_INVALID_PARAMETER;
                }
 
index 0485cc4e64e51d932eb395f0541c9f56afffd2ea..1785423cb707693ce923de89765f19c092271107 100644 (file)
@@ -1890,7 +1890,7 @@ _PUBLIC_ NTSTATUS netlogon_creds_session_encrypt(
         * NETLOGON pipe session key .
         */
        if (all_zero(data.data, data.length)) {
-               DBG_ERR("Supplied data all zeros, could leak session key");
+               DBG_ERR("Supplied data all zeros, could leak session key\n");
                return NT_STATUS_INVALID_PARAMETER;
        }
        if (state->negotiate_flags & NETLOGON_NEG_SUPPORTS_AES) {
@@ -1902,7 +1902,7 @@ _PUBLIC_ NTSTATUS netlogon_creds_session_encrypt(
                                                      data.data,
                                                      data.length);
        } else {
-               DBG_ERR("Unsupported encryption option negotiated");
+               DBG_ERR("Unsupported encryption option negotiated\n");
                status = NT_STATUS_NOT_SUPPORTED;
        }
        if (!NT_STATUS_IS_OK(status)) {