summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_login.c7
-rw-r--r--source3/rpc_client/cli_netlogon.c22
2 files changed, 14 insertions, 15 deletions
diff --git a/source3/rpc_client/cli_login.c b/source3/rpc_client/cli_login.c
index 92a70886d9..0eb5bd1af7 100644
--- a/source3/rpc_client/cli_login.c
+++ b/source3/rpc_client/cli_login.c
@@ -156,9 +156,10 @@ NT login - network.
password equivalents over the network. JRA.
****************************************************************************/
-BOOL cli_nt_login_network(struct cli_state *cli, const auth_usersupplied_info *user_info,
- uint32 smb_userid_low, NET_ID_INFO_CTR *ctr,
- NET_USER_INFO_3 *user_info3)
+uint32 cli_nt_login_network(struct cli_state *cli,
+ const auth_usersupplied_info *user_info,
+ uint32 smb_userid_low, NET_ID_INFO_CTR *ctr,
+ NET_USER_INFO_3 *user_info3)
{
DEBUG(5,("cli_nt_login_network: %d\n", __LINE__));
/* indicate a "network" login */
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index 18266739ac..2dd9eb0141 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -437,18 +437,18 @@ password ?).\n", cli->desthost ));
LSA SAM Logon - interactive or network.
****************************************************************************/
-BOOL cli_net_sam_logon(struct cli_state *cli, NET_ID_INFO_CTR *ctr, NET_USER_INFO_3 *user_info3)
+uint32 cli_net_sam_logon(struct cli_state *cli, NET_ID_INFO_CTR *ctr,
+ NET_USER_INFO_3 *user_info3)
{
- BOOL ok = True;
uint16 validation_level=3;
- uint32 ret_err_code;
+ uint32 result;
- ret_err_code = cli_net_sam_logon_internal(cli, ctr, user_info3, validation_level);
+ result = cli_net_sam_logon_internal(cli, ctr, user_info3,
+ validation_level);
- if(ret_err_code == NT_STATUS_NOPROBLEMO) {
+ if(result == NT_STATUS_NOPROBLEMO) {
DEBUG(10,("cli_net_sam_logon: Success \n"));
- ok = True;
- } else if (ret_err_code == NT_STATUS_INVALID_INFO_CLASS) {
+ } else if (result == NT_STATUS_INVALID_INFO_CLASS) {
DEBUG(10,("cli_net_sam_logon: STATUS INVALID INFO CLASS \n"));
validation_level=2;
@@ -458,15 +458,13 @@ BOOL cli_net_sam_logon(struct cli_state *cli, NET_ID_INFO_CTR *ctr, NET_USER_INF
* for the error. If its error, return False.
*/
- if(cli_net_sam_logon_internal(cli, ctr, user_info3, validation_level) != 0)
- ok = False;
-
+ result = cli_net_sam_logon_internal(cli, ctr, user_info3,
+ validation_level);
} else {
DEBUG(10,("cli_net_sam_logon: Error\n"));
- ok = False;
}
- return ok;
+ return result;
}
/***************************************************************************