mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
parent
c9c404b26c
commit
3276da4314
@ -233,17 +233,17 @@ static NTSTATUS sam_password_ok(const struct auth_context *auth_context,
|
||||
return NT_STATUS_OK;
|
||||
} else {
|
||||
if (lp_ntlm_auth()) {
|
||||
/* Apparently NT accepts NT responses in the LM feild
|
||||
- I think this is related to Win9X pass-though authenticaion
|
||||
/* Apparently NT accepts NT responses in the LM field
|
||||
- I think this is related to Win9X pass-though authentication
|
||||
*/
|
||||
DEBUG(4,("sam_password_ok: Checking NT MD4 password in LM feild\n"));
|
||||
DEBUG(4,("sam_password_ok: Checking NT MD4 password in LM field\n"));
|
||||
if (smb_pwd_check_ntlmv1(user_info->lm_resp,
|
||||
nt_pw, auth_context->challenge,
|
||||
user_sess_key))
|
||||
{
|
||||
return NT_STATUS_OK;
|
||||
} else {
|
||||
DEBUG(3,("sam_password_ok: NT MD4 password in LM feild failed for user %s\n",pdb_get_username(sampass)));
|
||||
DEBUG(3,("sam_password_ok: NT MD4 password in LM field failed for user %s\n",pdb_get_username(sampass)));
|
||||
return NT_STATUS_WRONG_PASSWORD;
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ BOOL account_policy_get(int field, uint32 *value)
|
||||
return False;
|
||||
}
|
||||
if (!tdb_fetch_uint32(tdb, name, value)) {
|
||||
DEBUG(1, ("account_policy_get: tdb_fetch_uint32 failed for feild %d (%s), returning 0", field, name));
|
||||
DEBUG(1, ("account_policy_get: tdb_fetch_uint32 failed for efild %d (%s), returning 0", field, name));
|
||||
return False;
|
||||
}
|
||||
DEBUG(10,("account_policy_get: %s:%d\n", name, *value));
|
||||
@ -151,7 +151,7 @@ BOOL account_policy_set(int field, uint32 value)
|
||||
}
|
||||
|
||||
if (!tdb_store_uint32(tdb, name, value)) {
|
||||
DEBUG(1, ("tdb_store_uint32 failed for feild %d (%s) on value %u", field, name, value));
|
||||
DEBUG(1, ("tdb_store_uint32 failed for field %d (%s) on value %u", field, name, value));
|
||||
return False;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user