diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-26 10:01:39 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-08-03 18:48:04 +1000 |
commit | 902df836807b700b2d27877f2fa5284930df3ff7 (patch) | |
tree | 89dca448661f2318219a3606462d579b58637d93 /source3/auth/auth.c | |
parent | 643d05826cbf7ef82e1ee8f33d610a79dcb8607a (diff) | |
download | samba-902df836807b700b2d27877f2fa5284930df3ff7.tar.gz samba-902df836807b700b2d27877f2fa5284930df3ff7.tar.xz samba-902df836807b700b2d27877f2fa5284930df3ff7.zip |
s3-ntlmssp Split calls to gensec plugin into prepare and start
GENSEC has the concept of starting the GENSEC subsystem before starting the
actual mechansim. Between these two stages is when most context methods
are called, to specify credentials and features.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/auth/auth.c')
-rw-r--r-- | source3/auth/auth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c index df93e0d27a8..f2cd7032972 100644 --- a/source3/auth/auth.c +++ b/source3/auth/auth.c @@ -462,8 +462,9 @@ static NTSTATUS make_auth_context_text_list(TALLOC_CTX *mem_ctx, /* Look for the first module to provide a start_gensec hook, and set that if provided */ for (method = (*auth_context)->auth_method_list; method; method = method->next) { - if (method->start_gensec) { - (*auth_context)->start_gensec = method->start_gensec; + if (method->prepare_gensec && method->gensec_start_mech_by_oid) { + (*auth_context)->prepare_gensec = method->prepare_gensec; + (*auth_context)->gensec_start_mech_by_oid = method->gensec_start_mech_by_oid; break; } } |