diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index c715ac08d8..d4241a0c78 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -2335,7 +2335,7 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain, struct winbindd_cm_conn *conn; NTSTATUS result; - uint32 neg_flags = NETLOGON_NEG_SELECT_AUTH2_FLAGS; + uint32 neg_flags = NETLOGON_NEG_AUTH2_FLAGS; uint8 mach_pwd[16]; uint32 sec_chan_type; const char *account_name; @@ -2348,6 +2348,10 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain, return result; } + if (domain->active_directory) { + neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; + } + conn = &domain->conn; if (conn->netlogon_pipe != NULL) { |