]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/rpc_server/sambr: don't mutate the return of samdb_set_password_aes
authorNoel Power <noel.power@suse.com>
Fri, 21 Oct 2022 16:40:36 +0000 (17:40 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 25 Oct 2022 09:34:33 +0000 (09:34 +0000)
prior to this commit return of samdb_set_password_aes was set to
NT_STATUS_WRONG_PASSWORD on failure. Useful status that should be
returned such as NT_STATUS_PASSWORD_RESTRICTION are swallowed here
otherwise (and in this case can be partially responsible for failures
in test samba.tests.auth_log_pass_change (with later gnutls)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/rpc_server/samr/samr_password.c

index 4691f9a47a93dec84533bbcfb9c86d92ce84a1d9..b581be6361cf3da951a745a0c7e4314be329b62b 100644 (file)
@@ -250,7 +250,6 @@ NTSTATUS dcesrv_samr_ChangePasswordUser4(struct dcesrv_call_state *dce_call,
 
        if (!NT_STATUS_IS_OK(status)) {
                ldb_transaction_cancel(sam_ctx);
-               status = NT_STATUS_WRONG_PASSWORD;
                goto done;
        }