diff options
author | Tim Potter <tpot@samba.org> | 2001-08-24 20:31:00 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-08-24 20:31:00 +0000 |
commit | b9e7eeaf4fc13fb9e2dbee69e07bc6800f6e427a (patch) | |
tree | 1ccc60f5a4a87fd769da7ec54dd7c9a64237e367 /source3/rpc_client | |
parent | 364d0e56e94718ad49bca4d6dcc95dee8e4e85e5 (diff) | |
download | samba-b9e7eeaf4fc13fb9e2dbee69e07bc6800f6e427a.tar.gz samba-b9e7eeaf4fc13fb9e2dbee69e07bc6800f6e427a.tar.bz2 samba-b9e7eeaf4fc13fb9e2dbee69e07bc6800f6e427a.zip |
More status32 conversions.
(This used to be commit 031a19639ce862bd01c1a72d8b5ff21b0eae99d2)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_login.c | 7 | ||||
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 22 |
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; } /*************************************************************************** |