s3:rpc_server: Use copy_pwd_expired_to_sam_passwd() in set_user_info_26()
authorAndreas Schneider <asn@samba.org>
Mon, 23 Aug 2021 09:30:40 +0000 (11:30 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 28 Jul 2022 11:51:29 +0000 (11:51 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/samr/srv_samr_nt.c

index b418e2c4ff86899352e1d95bd2fa4607d5720caf..2afebb9a16467bc170a33ebf06081d22aa5e496e 100644 (file)
@@ -5131,7 +5131,7 @@ static NTSTATUS set_user_info_26(TALLOC_CTX *mem_ctx,
                return NT_STATUS_WRONG_PASSWORD;
        }
 
-       copy_id26_to_sam_passwd(pwd, id26);
+       copy_pwd_expired_to_sam_passwd(pwd, id26->password_expired);
 
        status = pdb_update_sam_account(pwd);
        if (!NT_STATUS_IS_OK(status)) {