s3:libsmb: don't handle CLI_FULL_CONNECTION_* flags in cli_start_connection()
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Sep 2011 15:26:30 +0000 (17:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 8 Sep 2011 15:51:29 +0000 (17:51 +0200)
This is already done by cli_state_create().

metze

source3/libsmb/cliconnect.c

index 58cf7a8e5856b4772b2cc1c7fe1fb5778007a3b5..70089e5f08ad84637ae992902cd9b4fce371fe83 100644 (file)
@@ -2911,19 +2911,6 @@ NTSTATUS cli_start_connection(struct cli_state **output_cli,
                return nt_status;
        }
 
-       if (flags & CLI_FULL_CONNECTION_DONT_SPNEGO)
-               cli->use_spnego = False;
-       else if (flags & CLI_FULL_CONNECTION_USE_KERBEROS)
-               cli->use_kerberos = True;
-
-       if ((flags & CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS) &&
-            cli->use_kerberos) {
-               cli->fallback_after_kerberos = true;
-       }
-       if (flags & CLI_FULL_CONNECTION_USE_CCACHE) {
-               cli->use_ccache = true;
-       }
-
        nt_status = cli_negprot(cli);
        if (!NT_STATUS_IS_OK(nt_status)) {
                DEBUG(1, ("failed negprot: %s\n", nt_errstr(nt_status)));