summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-07 21:10:24 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-08 08:51:48 +0200
commitcdca1e0ac3c185856fbe2d061a30bfa8e71e4e1c (patch)
tree68b6c60565674217578ed519d4ee45fd4b740da7 /source3/winbindd
parent2c741efc993186c1f814ba0aaaf89cf80f911196 (diff)
downloadsamba-cdca1e0ac3c185856fbe2d061a30bfa8e71e4e1c.tar.gz
samba-cdca1e0ac3c185856fbe2d061a30bfa8e71e4e1c.tar.bz2
samba-cdca1e0ac3c185856fbe2d061a30bfa8e71e4e1c.zip
s3:libsmb: pass CLI_FULL_CONNECTION_* flags to cli_state_create()
metze
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 09189aaa74..807ad40d37 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -787,6 +787,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
char *ipc_username = NULL;
char *ipc_domain = NULL;
char *ipc_password = NULL;
+ int flags = 0;
struct named_mutex *mutex;
@@ -806,9 +807,11 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
goto done;
}
+ flags |= CLI_FULL_CONNECTION_USE_KERBEROS;
+
*cli = cli_state_create(NULL, sockfd,
controller, domain->alt_name,
- Undefined);
+ Undefined, flags);
if (*cli == NULL) {
DEBUG(1, ("Could not cli_initialize\n"));
result = NT_STATUS_NO_MEMORY;
@@ -817,8 +820,6 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
cli_set_timeout(*cli, 10000); /* 10 seconds */
- (*cli)->use_kerberos = True;
-
result = cli_negprot(*cli);
if (!NT_STATUS_IS_OK(result)) {