summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/cliconnect.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-08 14:10:48 +0200
committerGünther Deschner <gd@samba.org>2008-04-08 14:25:13 +0200
commite49200c1a2836bda4a86b034153365b8d9e99ce1 (patch)
treedf53d25edd818f4a8375cd3770fd3adf9a57c871 /source3/libsmb/cliconnect.c
parentc2bb4b51c1e660a675197063781323fe65c97135 (diff)
downloadsamba-e49200c1a2836bda4a86b034153365b8d9e99ce1.tar.gz
samba-e49200c1a2836bda4a86b034153365b8d9e99ce1.tar.xz
samba-e49200c1a2836bda4a86b034153365b8d9e99ce1.zip
Add CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS define.
This allows to switch on the cli->fallback_after_kerberos switch. Guenther (This used to be commit 15ba45e567d910c1b2336dcc0c475e12b082f30f)
Diffstat (limited to 'source3/libsmb/cliconnect.c')
-rw-r--r--source3/libsmb/cliconnect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index b76814e45f2..949bca747d9 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1652,6 +1652,11 @@ again:
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 (!cli_negprot(cli)) {
DEBUG(1,("failed negprot\n"));
nt_status = cli_nt_error(cli);