summaryrefslogtreecommitdiff
path: root/source3/libsmb/domain_client_validate.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-09-18 02:49:35 +0000
committerTim Potter <tpot@samba.org>2001-09-18 02:49:35 +0000
commit15a6649c01195f2b385fbfd7e54279c1acc3a878 (patch)
treea52eb35ea4ddd147db807039883bbf1f0240167a /source3/libsmb/domain_client_validate.c
parent006c8342de3c962f38135aab738e51f0871d440d (diff)
downloadsamba-15a6649c01195f2b385fbfd7e54279c1acc3a878.tar.gz
samba-15a6649c01195f2b385fbfd7e54279c1acc3a878.tar.bz2
samba-15a6649c01195f2b385fbfd7e54279c1acc3a878.zip
Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS.
(This used to be commit e0bdcbc5994345fdc76f7590dba7bce5f0127d58)
Diffstat (limited to 'source3/libsmb/domain_client_validate.c')
-rw-r--r--source3/libsmb/domain_client_validate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libsmb/domain_client_validate.c b/source3/libsmb/domain_client_validate.c
index 90c15fd1f7..5a8ae372ea 100644
--- a/source3/libsmb/domain_client_validate.c
+++ b/source3/libsmb/domain_client_validate.c
@@ -37,6 +37,7 @@ static BOOL connect_to_domain_password_server(struct cli_state *pcli,
{
struct in_addr dest_ip;
fstring remote_machine;
+ NTSTATUS result;
if(cli_initialise(pcli) == NULL) {
DEBUG(0,("connect_to_domain_password_server: unable to initialize client connection.\n"));
@@ -154,9 +155,11 @@ machine %s. Error was : %s.\n", remote_machine, cli_errstr(pcli)));
return False;
}
- if (cli_nt_setup_creds(pcli, trust_passwd) == False) {
+ result = cli_nt_setup_creds(pcli, trust_passwd);
+
+ if (!NT_STATUS_IS_OK(result)) {
DEBUG(0,("connect_to_domain_password_server: unable to setup the PDC credentials to machine \
-%s. Error was : %s.\n", remote_machine, cli_errstr(pcli)));
+%s. Error was : %s.\n", remote_machine, get_nt_error_msg(result)));
cli_nt_session_close(pcli);
cli_ulogoff(pcli);
cli_shutdown(pcli);