From b031af348c7dcc8c74bf49945211c466b8eca079 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 Aug 2001 19:46:22 +0000 Subject: converted another bunch of stuff to NTSTATUS (This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e) --- source3/libsmb/domain_client_validate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/libsmb/domain_client_validate.c') diff --git a/source3/libsmb/domain_client_validate.c b/source3/libsmb/domain_client_validate.c index 5c56a815ef..69b5739b63 100644 --- a/source3/libsmb/domain_client_validate.c +++ b/source3/libsmb/domain_client_validate.c @@ -269,7 +269,7 @@ static BOOL find_connect_pdc(struct cli_state *pcli, use it, otherwise figure out a server from the 'password server' param. ************************************************************************/ -uint32 domain_client_validate(const auth_usersupplied_info *user_info, +NTSTATUS domain_client_validate(const auth_usersupplied_info *user_info, auth_serversupplied_info *server_info, char *server, unsigned char *trust_passwd, time_t last_change_time) @@ -280,7 +280,7 @@ uint32 domain_client_validate(const auth_usersupplied_info *user_info, struct cli_state cli; uint32 smb_uid_low; BOOL connected_ok = False; - uint32 status; + NTSTATUS status; /* * Check that the requested domain is not our own machine name. @@ -325,14 +325,14 @@ uint32 domain_client_validate(const auth_usersupplied_info *user_info, if ((status = cli_nt_login_network(&cli, user_info, smb_uid_low, &ctr, &info3)) - != NT_STATUS_NOPROBLEMO) { + != NT_STATUS_OK) { DEBUG(0,("domain_client_validate: unable to validate password " "for user %s in domain %s to Domain controller %s. " "Error was %s.\n", user_info->smb_username.str, user_info->domain.str, remote_machine, get_nt_error_msg(status))); } else { - status = NT_STATUS_NOPROBLEMO; + status = NT_STATUS_OK; } /* @@ -346,7 +346,7 @@ uint32 domain_client_validate(const auth_usersupplied_info *user_info, * send here. JRA. */ - if (status == NT_STATUS_NOPROBLMO) { + if (NT_STATUS_IS_OK(status)) { if(cli_nt_logoff(&cli, &ctr) == False) { DEBUG(0,("domain_client_validate: unable to log off user %s in domain \ %s to Domain controller %s. Error was %s.\n", user, domain, remote_machine, cli_errstr(&cli))); -- cgit