s3:rpcclient: avoid using auth related CLI_FULL_CONNECTION_* flags
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Nov 2019 16:49:48 +0000 (17:49 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 28 May 2020 06:43:40 +0000 (06:43 +0000)
We use get_cmdline_auth_info_creds() and pass cli_credentials arround.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpcclient/rpcclient.c

index 66d77302af3a66e8b35e9c7432850845b739ddf0..67a1066fc15e9068acf2a181b9fa2772ebbab28a 100644 (file)
@@ -1193,18 +1193,6 @@ out_free:
                break;
        }
 
-       if (get_cmdline_auth_info_use_kerberos(popt_get_cmdline_auth_info())) {
-               flags |= CLI_FULL_CONNECTION_USE_KERBEROS |
-                        CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS;
-       }
-       if (get_cmdline_auth_info_use_ccache(popt_get_cmdline_auth_info())) {
-               flags |= CLI_FULL_CONNECTION_USE_CCACHE;
-       }
-       if (get_cmdline_auth_info_use_pw_nt_hash(
-                       popt_get_cmdline_auth_info())) {
-               flags |= CLI_FULL_CONNECTION_USE_NT_HASH;
-       }
-
        rpcclient_netlogon_domain = get_cmdline_auth_info_domain(
                        popt_get_cmdline_auth_info());
        if (rpcclient_netlogon_domain == NULL ||