From 3f0d0002ae4a5351ee01fcb6c0bb81b98273fac0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 25 Nov 2003 23:24:14 +0000 Subject: Add a comment, and a useful debug message. (This used to be commit df14b0af31863680218b06ae9de2f010a38fba6e) --- source3/nsswitch/winbindd.c | 1 + source3/nsswitch/winbindd_pam.c | 2 ++ 2 files changed, 3 insertions(+) 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); -- cgit