diff options
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 df93e0d27a..f2cd703297 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; } } |