summaryrefslogtreecommitdiff
path: root/source3
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
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')
-rw-r--r--source3/nsswitch/winbindd.c1
-rw-r--r--source3/nsswitch/winbindd_pam.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index bf83867e81..74df934ca2 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -723,6 +723,7 @@ static void process_loop(void)
&& *(uint32 *) &state->request != sizeof(state->request)) {
DEBUG(0,("process_loop: Invalid request size from pid %lu: %d bytes sent, should be %ld\n",
(unsigned long)state->request.pid, *(uint32 *) &state->request, (unsigned long)sizeof(state->request)));
+ DEBUGADD(0, ("This usually means that you are running old wbinfo, pam_winbind or libnss_winbind clients\n"));
remove_client(state);
break;
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);