summaryrefslogtreecommitdiff
path: root/source3/auth/auth_sam.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-11 22:23:08 +0200
committerVolker Lendecke <vl@samba.org>2010-04-11 22:59:45 +0200
commita0c175eca9d296e8434acbdb1a87241d64d86f7b (patch)
tree3197fc1ed0bcf51428ecfcb24fd42e49e938779b /source3/auth/auth_sam.c
parent19c00865537ff298e6306de4e81d376d3f068237 (diff)
downloadsamba-a0c175eca9d296e8434acbdb1a87241d64d86f7b.tar.gz
samba-a0c175eca9d296e8434acbdb1a87241d64d86f7b.tar.bz2
samba-a0c175eca9d296e8434acbdb1a87241d64d86f7b.zip
s3: Replace "auth_context" by "challenge" in need_to_increment_bad_pw_count args
Diffstat (limited to 'source3/auth/auth_sam.c')
-rw-r--r--source3/auth/auth_sam.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index 366288ebe9..15df9975f7 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -288,7 +288,7 @@ static NTSTATUS sam_account_ok(TALLOC_CTX *mem_ctx,
* failed.
*/
static bool need_to_increment_bad_pw_count(
- const struct auth_context *auth_context,
+ const DATA_BLOB *challenge,
struct samu* sampass,
const struct auth_usersupplied_info *user_info)
{
@@ -338,7 +338,7 @@ static bool need_to_increment_bad_pw_count(
status = sam_password_ok(mem_ctx,
username, acct_ctrl,
- &auth_context->challenge,
+ challenge,
NULL, nt_pw,
user_info, &user_sess_key, &lm_sess_key);
if (NT_STATUS_IS_OK(status)) {
@@ -431,9 +431,9 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
NT_STATUS_IS_OK(update_login_attempts_status))
{
increment_bad_pw_count =
- need_to_increment_bad_pw_count(auth_context,
- sampass,
- user_info);
+ need_to_increment_bad_pw_count(
+ &auth_context->challenge, sampass,
+ user_info);
}
if (increment_bad_pw_count) {