summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_pam.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-11-25 23:24:14 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-11-25 23:24:14 +0000
commit3f0d0002ae4a5351ee01fcb6c0bb81b98273fac0 (patch)
treed0cfa581fc99f07f010b8636f9cd79f8cffb8d55 /source3/nsswitch/winbindd_pam.c
parent8beace344c349ffdf4f1e1977723700ece9b7e6d (diff)
downloadsamba-3f0d0002ae4a5351ee01fcb6c0bb81b98273fac0.tar.gz
samba-3f0d0002ae4a5351ee01fcb6c0bb81b98273fac0.tar.bz2
samba-3f0d0002ae4a5351ee01fcb6c0bb81b98273fac0.zip
Add a comment, and a useful debug message.
(This used to be commit df14b0af31863680218b06ae9de2f010a38fba6e)
Diffstat (limited to 'source3/nsswitch/winbindd_pam.c')
-rw-r--r--source3/nsswitch/winbindd_pam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c
index d849a6d5a9..6e386760b4 100644
--- a/source3/nsswitch/winbindd_pam.c
+++ b/source3/nsswitch/winbindd_pam.c
@@ -384,6 +384,8 @@ done:
state->response.data.auth.nt_status = NT_STATUS_V(result);
push_utf8_fstring(state->response.data.auth.nt_status_string, nt_errstr(result));
+
+ /* we might have given a more useful error above */
if (!*state->response.data.auth.error_string)
push_utf8_fstring(state->response.data.auth.error_string, get_friendly_nt_error_msg(result));
state->response.data.auth.pam_error = nt_status_to_pam(result);