summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_pam.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-24 19:09:37 +0000
committerTim Potter <tpot@samba.org>2001-08-24 19:09:37 +0000
commit31b6b7aecdca9086e4cbbb7ae89fd6d6ca84928d (patch)
tree6d3d9db76f73e714edbc233df27cbb65defc79c4 /source3/nsswitch/winbindd_pam.c
parentbb94537ab5858fecb34f047c9e5c0e6fe4fd8ae9 (diff)
downloadsamba-31b6b7aecdca9086e4cbbb7ae89fd6d6ca84928d.tar.gz
samba-31b6b7aecdca9086e4cbbb7ae89fd6d6ca84928d.tar.bz2
samba-31b6b7aecdca9086e4cbbb7ae89fd6d6ca84928d.zip
Make domain_client_validate return a status code instead of a boolean.
(This used to be commit b4e79ab34b7df4687966f4ca81b575dce8503775)
Diffstat (limited to 'source3/nsswitch/winbindd_pam.c')
-rw-r--r--source3/nsswitch/winbindd_pam.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c
index d832cfdc02..6f1872e0a4 100644
--- a/source3/nsswitch/winbindd_pam.c
+++ b/source3/nsswitch/winbindd_pam.c
@@ -54,7 +54,7 @@ static void parse_domain_user(char *domuser, fstring domain, fstring user)
enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state)
{
- BOOL result;
+ uint32 result;
fstring name_domain, name_user;
int passlen;
unsigned char trust_passwd[16];
@@ -131,18 +131,18 @@ enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state)
for each authentication performed. This can theoretically
be optimised to use an already open IPC$ connection. */
- result = (domain_client_validate(&user_info, &server_info,
- server_state.controller, trust_passwd,
- last_change_time) == NT_STATUS_NOPROBLEMO);
+ result = domain_client_validate(&user_info, &server_info,
+ server_state.controller, trust_passwd,
+ last_change_time);
- return result ? WINBINDD_OK : WINBINDD_ERROR;
+ return (result == NT_STATUS_NOPROBLEMO) ? WINBINDD_OK : WINBINDD_ERROR;
}
/* Challenge Response Authentication Protocol */
enum winbindd_result winbindd_pam_auth_crap(struct winbindd_cli_state *state)
{
- BOOL result;
+ uint32 result;
fstring name_domain, name_user;
unsigned char trust_passwd[16];
time_t last_change_time;
@@ -202,11 +202,11 @@ enum winbindd_result winbindd_pam_auth_crap(struct winbindd_cli_state *state)
for each authentication performed. This can theoretically
be optimised to use an already open IPC$ connection. */
- result = (domain_client_validate(&user_info, &server_info,
- server_state.controller, trust_passwd,
- last_change_time) == NT_STATUS_NOPROBLEMO);
+ result = domain_client_validate(&user_info, &server_info,
+ server_state.controller, trust_passwd,
+ last_change_time);
- return result ? WINBINDD_OK : WINBINDD_ERROR;
+ return (result == NT_STATUS_NOPROBLEMO) ? WINBINDD_OK : WINBINDD_ERROR;
}
/* Change a user password */