rpcclient: Remove domain sid check
authorVolker Lendecke <vl@samba.org>
Sat, 28 Sep 2019 02:22:55 +0000 (19:22 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 3 Oct 2019 16:39:31 +0000 (16:39 +0000)
The samr calls can take care of this on their own

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpcclient/rpcclient.c

index 952b2d3be7af415ac778884d4714edafd1a5ca06..0ef41433314fb35d362df7a1eeaeaa57f4f7f93d 100644 (file)
@@ -855,12 +855,6 @@ static NTSTATUS do_cmd(struct cli_state *cli,
 
        TALLOC_CTX *mem_ctx;
 
-       if (cmd_entry->table == &ndr_table_samr &&
-           !dom_sid_is_valid_account_domain(&domain_sid))
-       {
-               return NT_STATUS_INVALID_DOMAIN_STATE;
-       }
-
        /* Create mem_ctx */
 
        if (!(mem_ctx = talloc_stackframe())) {