--- wb_ntlm_auth.c.orig Sun May 19 23:45:31 2002 +++ wb_ntlm_auth.c Fri Jun 28 06:22:27 2002 @@ -247,7 +247,7 @@ &request, &response); debug("winbindd result: %d\n", winbindd_result); - if (winbindd_result == WINBINDD_OK) { + if (response.result == WINBINDD_OK) { lc(domain); lc(user); authok(domain, user); @@ -380,7 +380,7 @@ struct winbindd_request request; struct winbindd_response response; r = winbindd_request(WINBINDD_INTERFACE_VERSION, &request, &response); - if (r != WINBINDD_OK) { + if (response.result != WINBINDD_OK) { warn("Can't contact winbindd. Dying\n"); exit(1); }