git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
19c0086
)
s3: Replace "auth_context" by "challenge" in need_to_increment_bad_pw_count args
author
Volker Lendecke
<vl@samba.org>
Sun, 11 Apr 2010 20:23:08 +0000
(22:23 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 11 Apr 2010 20:59:45 +0000
(22:59 +0200)
source3/auth/auth_sam.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_sam.c
b/source3/auth/auth_sam.c
index 366288ebe93544158ea017518d94677e5537452a..15df9975f760cc2cd3b1b3f57c67064091e8467f 100644
(file)
--- 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(
* 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)
{
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,
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)) {
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 =
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) {
}
if (increment_bad_pw_count) {