summaryrefslogtreecommitdiff
path: root/source3
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
parentc2bb4b51c1e660a675197063781323fe65c97135 (diff)
downloadsamba-e49200c1a2836bda4a86b034153365b8d9e99ce1.tar.gz
samba-e49200c1a2836bda4a86b034153365b8d9e99ce1.tar.bz2
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')
-rw-r--r--source3/include/client.h1
-rw-r--r--source3/libsmb/cliconnect.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 0787712efb..0e73745edb 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -242,5 +242,6 @@ typedef struct file_info {
#define CLI_FULL_CONNECTION_DONT_SPNEGO 0x0001
#define CLI_FULL_CONNECTION_USE_KERBEROS 0x0002
#define CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK 0x0004
+#define CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS 0x0008
#endif /* _CLIENT_H */
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index b76814e45f..949bca747d 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);