summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-02 15:03:07 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-02 15:03:07 +0000
commitde8a78e7223f351838ef81085a7ec42f54a3740c (patch)
treef38eda8d6b97a50dc630ba2a3590c3b4dc9ac504 /source3/utils
parent8d9962f1d3093eb7d2524362685b858b68b6c9d5 (diff)
downloadsamba-de8a78e7223f351838ef81085a7ec42f54a3740c.tar.gz
samba-de8a78e7223f351838ef81085a7ec42f54a3740c.tar.bz2
samba-de8a78e7223f351838ef81085a7ec42f54a3740c.zip
Print out the 'freindly' error message from winbind. Also print useful
information into it re the privilaged pipe. Also clean up some bugs in winbindd_pam.c Andrew Bartlett (This used to be commit e73b01204a8625946ff0fb5f9fc99dd959eb801c)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/ntlm_auth.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 82e6127d55..88913c8051 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -157,17 +157,19 @@ static BOOL check_plaintext_auth(const char *user, const char *pass, BOOL stdout
d_printf("Reading winbind reply failed! (0x01)\n");
}
- d_printf("%s (0x%x)\n",
+ d_printf("%s: %s (0x%x)\n",
response.data.auth.nt_status_string,
+ response.data.auth.error_string,
response.data.auth.nt_status);
} else {
if ((result != NSS_STATUS_SUCCESS) && (response.data.auth.nt_status == 0)) {
DEBUG(1, ("Reading winbind reply failed! (0x01)\n"));
}
- DEBUG(3, ("%s (0x%x)\n",
- response.data.auth.nt_status_string,
- response.data.auth.nt_status));
+ DEBUG(3, ("%s: %s (0x%x)\n",
+ response.data.auth.nt_status_string,
+ response.data.auth.error_string,
+ response.data.auth.nt_status));
}
return (result == NSS_STATUS_SUCCESS);