summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_cm.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-19 16:09:37 +0100
committerVolker Lendecke <vl@samba.org>2008-03-19 17:00:53 +0100
commitca63c6e0796454c18a1d580df99cbd6d05f60672 (patch)
treea1bd1ae5736b89a59263115adb15896638f0dfef /source3/winbindd/winbindd_cm.c
parentbf10e7f93960f18739a9110d59d0ca09bfaf6c03 (diff)
downloadsamba-ca63c6e0796454c18a1d580df99cbd6d05f60672.tar.gz
samba-ca63c6e0796454c18a1d580df99cbd6d05f60672.tar.bz2
samba-ca63c6e0796454c18a1d580df99cbd6d05f60672.zip
Merge dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible
NetSamLogonEx has the advantage that it does not use the credential chain (This used to be commit cfceb063f559f8549b8f24ce347be213c89303b0)
Diffstat (limited to 'source3/winbindd/winbindd_cm.c')
-rw-r--r--source3/winbindd/winbindd_cm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 072b4ee98f..c715ac08d8 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -2403,6 +2403,11 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
no_schannel:
if ((lp_client_schannel() == False) ||
((neg_flags & NETLOGON_NEG_SCHANNEL) == 0)) {
+ /*
+ * NetSamLogonEx only works for schannel
+ */
+ domain->can_do_samlogon_ex = False;
+
/* We're done - just keep the existing connection to NETLOGON
* open */
conn->netlogon_pipe = netlogon_pipe;
@@ -2434,6 +2439,11 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
return !NT_STATUS_IS_OK(result) ? result : NT_STATUS_PIPE_NOT_AVAILABLE;
}
+ /*
+ * Try NetSamLogonEx for AD domains
+ */
+ domain->can_do_samlogon_ex = domain->active_directory;
+
*cli = conn->netlogon_pipe;
return NT_STATUS_OK;
}