summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-13 16:46:39 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-13 18:12:23 +0200
commitfaab79e28e239b274ac53ababe4f0e2e2f486dd1 (patch)
treef68e0e6139df1763408cc16fa6cc643c0042206d /source3
parent9a855dd5d9d042f4dd93e8fd43c50176e99a4c0e (diff)
downloadsamba-faab79e28e239b274ac53ababe4f0e2e2f486dd1.tar.gz
samba-faab79e28e239b274ac53ababe4f0e2e2f486dd1.tar.bz2
samba-faab79e28e239b274ac53ababe4f0e2e2f486dd1.zip
s3:winbindd_cm: make use of cli_state_security_mode()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 807ad40d37..b631ab69a9 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -788,6 +788,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
char *ipc_domain = NULL;
char *ipc_password = NULL;
int flags = 0;
+ uint16_t sec_mode = 0;
struct named_mutex *mutex;
@@ -910,7 +911,8 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
cm_get_ipc_userpass(&ipc_username, &ipc_domain, &ipc_password);
- if ((((*cli)->sec_mode & NEGOTIATE_SECURITY_CHALLENGE_RESPONSE) != 0) &&
+ sec_mode = cli_state_security_mode(*cli);
+ if (((sec_mode & NEGOTIATE_SECURITY_CHALLENGE_RESPONSE) != 0) &&
(strlen(ipc_username) > 0)) {
/* Only try authenticated if we have a username */