1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:auth Add error paths for invalid password_state values

Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
Andrew Bartlett 2010-05-04 23:44:50 +10:00
parent 70211ea6a3
commit 4f8ef205ac
3 changed files with 10 additions and 2 deletions

View File

@ -410,6 +410,9 @@ use this machine as the password server.\n"));
(char *)user_info->password.response.nt.data,
user_info->password.response.nt.length,
user_info->mapped.domain_name);
default:
DEBUG(0,("user_info constructed for user '%s' was invalid - password_state=%u invalid.\n",user_info->mapped.account_name, user_info->password_state));
nt_status = NT_STATUS_INTERNAL_ERROR;
}
if (!NT_STATUS_IS_OK(nt_status)) {

View File

@ -95,8 +95,11 @@ static NTSTATUS check_wbc_security(const struct auth_context *auth_context,
params.password.response.nt_data = user_info->password.response.nt.data;
params.password.response.lm_length = user_info->password.response.lanman.length;
params.password.response.lm_data = user_info->password.response.lanman.data;
default:
DEBUG(0,("user_info constructed for user '%s' was invalid - password_state=%u invalid.\n",user_info->mapped.account_name, user_info->password_state));
return NT_STATUS_INTERNAL_ERROR;
}
#if 0
#if 0 /* If ever implemented in libwbclient */
case AUTH_PASSWORD_HASH:
{
DEBUG(3,("Checking logon (hash) password for %s.\n",

View File

@ -102,8 +102,10 @@ static NTSTATUS sam_password_ok(TALLOC_CTX *mem_ctx,
lm_hash,
nt_hash,
user_sess_key, lm_sess_key);
default:
DEBUG(0,("user_info constructed for user '%s' was invalid - password_state=%u invalid.\n", username, user_info->password_state));
return NT_STATUS_INTERNAL_ERROR;
}
return NT_STATUS_INVALID_PARAMETER;
}
/****************************************************************************