diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-02 15:03:07 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-02 15:03:07 +0000 |
commit | e73b01204a8625946ff0fb5f9fc99dd959eb801c (patch) | |
tree | 4361d9cf30f0e62ddfff856750f039820e4bfe23 /source/nsswitch/wbinfo.c | |
parent | 266c3970df9f5f9f617c49eee666c1db8e10c855 (diff) | |
download | samba-e73b01204a8625946ff0fb5f9fc99dd959eb801c.tar.gz samba-e73b01204a8625946ff0fb5f9fc99dd959eb801c.tar.xz samba-e73b01204a8625946ff0fb5f9fc99dd959eb801c.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
Diffstat (limited to 'source/nsswitch/wbinfo.c')
-rw-r--r-- | source/nsswitch/wbinfo.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c index 5ec8e534aa9..61c54b37382 100644 --- a/source/nsswitch/wbinfo.c +++ b/source/nsswitch/wbinfo.c @@ -447,9 +447,10 @@ static BOOL wbinfo_auth(char *username) (result == NSS_STATUS_SUCCESS) ? "succeeded" : "failed"); if (response.data.auth.nt_status) - d_printf("error code was %s (0x%x)\n", + d_printf("error code was %s (0x%x)\nerror messsage was: %s\n", response.data.auth.nt_status_string, - response.data.auth.nt_status); + response.data.auth.nt_status, + response.data.auth.error_string); return result == NSS_STATUS_SUCCESS; } @@ -502,9 +503,10 @@ static BOOL wbinfo_auth_crap(char *username) (result == NSS_STATUS_SUCCESS) ? "succeeded" : "failed"); if (response.data.auth.nt_status) - d_printf("error code was %s (0x%x)\n", + d_printf("error code was %s (0x%x)\nerror messsage was: %s\n", response.data.auth.nt_status_string, - response.data.auth.nt_status); + response.data.auth.nt_status, + response.data.auth.error_string); return result == NSS_STATUS_SUCCESS; } |