From cdca1e0ac3c185856fbe2d061a30bfa8e71e4e1c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 7 Sep 2011 21:10:24 +0200 Subject: s3:libsmb: pass CLI_FULL_CONNECTION_* flags to cli_state_create() metze --- source3/winbindd/winbindd_cm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/winbindd') 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)) { -- cgit