diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-01-30 22:11:41 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-02-17 10:48:09 +0100 |
commit | 8adde1b46b49011298e77f44a2053d0ec735a306 (patch) | |
tree | d3d760b8dc9b5ac37380a88af312a8f5a65e9541 /source3/auth/auth_generic.c | |
parent | a68d4ccec0b037dcf7bc28c9506dabdb60130837 (diff) | |
download | samba-8adde1b46b49011298e77f44a2053d0ec735a306.tar.gz samba-8adde1b46b49011298e77f44a2053d0ec735a306.tar.bz2 samba-8adde1b46b49011298e77f44a2053d0ec735a306.zip |
s3-auth Hook checking passwords and generating session_info via the auth4_context
This avoids creating a second auth_context, as it is a private pointer
in the auth4_context that has already been passed in, and makes the
gensec_ntlmssp code agnostic to the type of authentication backend
behind it. This will in turn allow the ntlmssp server code to be
further merged.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/auth/auth_generic.c')
-rw-r--r-- | source3/auth/auth_generic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/auth/auth_generic.c b/source3/auth/auth_generic.c index ca5a2afd47..b76dcd7e8f 100644 --- a/source3/auth/auth_generic.c +++ b/source3/auth/auth_generic.c @@ -190,6 +190,12 @@ NTSTATUS auth_generic_prepare(TALLOC_CTX *mem_ctx, return NT_STATUS_NO_MEMORY; } auth4_context->generate_session_info_pac = auth3_generate_session_info_pac; + auth4_context->generate_session_info = auth3_generate_session_info; + auth4_context->get_challenge = auth3_get_challenge; + auth4_context->set_challenge = auth3_set_challenge; + auth4_context->challenge_may_be_modified = auth3_may_set_challenge; + auth4_context->check_password = auth3_check_password; + auth4_context->private_data = talloc_steal(auth4_context, auth_context); lp_ctx = loadparm_init_s3(tmp_ctx, loadparm_s3_context()); if (lp_ctx == NULL) { |