summaryrefslogtreecommitdiff
path: root/source3/auth/auth_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/auth/auth_server.c')
-rw-r--r--source3/auth/auth_server.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index b279152f74..7ed4cf60ad 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -110,10 +110,11 @@ struct cli_state *server_cryptkey(void)
/****************************************************************************
- Validate a password with the password server.
+ Check for a valid username and password in security=server mode.
+ - Validate a password with the password server.
****************************************************************************/
-static NTSTATUS server_validate(const auth_usersupplied_info *user_info, auth_serversupplied_info *server_info)
+NTSTATUS check_server_security(const auth_usersupplied_info *user_info, auth_serversupplied_info *server_info)
{
struct cli_state *cli;
static unsigned char badpass[24];
@@ -212,7 +213,7 @@ use this machine as the password server.\n"));
user_info->domain.str)) {
DEBUG(1,("password server %s rejected the password\n", cli->desthost));
/* Make this cli_nt_error() when the conversion is in */
- nt_status = NT_STATUS_LOGON_FAILURE;
+ nt_status = cli_nt_error(cli);
} else {
nt_status = NT_STATUS_OK;
}
@@ -228,17 +229,4 @@ use this machine as the password server.\n"));
return(nt_status);
}
-/****************************************************************************
- Check for a valid username and password in security=server mode.
-****************************************************************************/
-
-NTSTATUS check_server_security(const auth_usersupplied_info *user_info, auth_serversupplied_info *server_info)
-{
-
- if(lp_security() != SEC_SERVER)
- return NT_STATUS_LOGON_FAILURE;
-
- return server_validate(user_info, server_info);
-}
-