summaryrefslogtreecommitdiff
path: root/source3/auth/auth.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-03 21:58:44 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-03-08 10:14:05 +0100
commit77602d877e755b2672b136704b039d85797fe305 (patch)
tree2145edafe1b4a97eda738c54e89056583c563353 /source3/auth/auth.c
parent50547a9950062311a4952846960b15e1d6cdfdf5 (diff)
downloadsamba-77602d877e755b2672b136704b039d85797fe305.tar.gz
samba-77602d877e755b2672b136704b039d85797fe305.tar.bz2
samba-77602d877e755b2672b136704b039d85797fe305.zip
s3-auth: Remove single-implementation plugin layer
The ->get_ntlm_challenge and ->check_ntlm_password elements of struct auth_context were only ever initialised to a single value. Make it easier to follow by just calling the function directly. Andrew Bartlett
Diffstat (limited to 'source3/auth/auth.c')
-rw-r--r--source3/auth/auth.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 0c91065605..4b075a6c54 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -78,8 +78,8 @@ static struct auth_init_function_entry *auth_find_backend_entry(const char *name
Returns a const char of length 8 bytes.
****************************************************************************/
-static NTSTATUS get_ntlm_challenge(struct auth_context *auth_context,
- uint8_t chal[8])
+NTSTATUS auth_get_ntlm_challenge(struct auth_context *auth_context,
+ uint8_t chal[8])
{
DATA_BLOB challenge = data_blob_null;
const char *challenge_set_by = NULL;
@@ -202,9 +202,9 @@ static bool check_domain_match(const char *user, const char *domain)
*
**/
-static NTSTATUS check_ntlm_password(const struct auth_context *auth_context,
- const struct auth_usersupplied_info *user_info,
- struct auth_serversupplied_info **server_info)
+NTSTATUS auth_check_ntlm_password(const struct auth_context *auth_context,
+ const struct auth_usersupplied_info *user_info,
+ struct auth_serversupplied_info **server_info)
{
/* if all the modules say 'not for me' this is reasonable */
NTSTATUS nt_status = NT_STATUS_NO_SUCH_USER;
@@ -366,9 +366,6 @@ static NTSTATUS make_auth_context(TALLOC_CTX *mem_ctx,
return NT_STATUS_NO_MEMORY;
}
- ctx->check_ntlm_password = check_ntlm_password;
- ctx->get_ntlm_challenge = get_ntlm_challenge;
-
talloc_set_destructor((TALLOC_CTX *)ctx, auth_context_destructor);
*auth_context = ctx;