]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
winbind status patches by Jerry Murdock
authorhno <>
Mon, 1 Jul 2002 16:17:43 +0000 (16:17 +0000)
committerhno <>
Mon, 1 Jul 2002 16:17:43 +0000 (16:17 +0000)
helpers/basic_auth/winbind/wb_basic_auth.c
helpers/ntlm_auth/winbind/wb_ntlm_auth.c

index ff9db92fcbdf19f0caee51b0f2f3d2e6030ea073..a4ec81efe00d18ca1b62019939ec02926199114d 100644 (file)
@@ -53,7 +53,7 @@ void do_authenticate(char *user, char *pass) {
                                                                                                                                                 &request, &response);
        debug("winbindd result: %d\n",winbindd_result);
 
-       if (winbindd_result==WINBINDD_OK) {
+       if (winbindd_result==NSS_STATUS_SUCCESS) {
                SEND("OK");
        } else {
                SEND("ERR");
index 247c824fe2c3f7bec87f033e09401b79eb0064a5..2d519abb6813efa617ae172a81489a94c186a487 100644 (file)
@@ -247,7 +247,7 @@ do_authenticate(ntlm_authenticate * auth, int auth_length)
        &request, &response);
     debug("winbindd result: %d\n", winbindd_result);
 
-    if (winbindd_result == WINBINDD_OK) {
+    if (winbindd_result == NSS_STATUS_SUCCESS) {
        lc(domain);
        lc(user);
        authok(domain, user);
@@ -380,7 +380,7 @@ check_winbindd()
     struct winbindd_request request;
     struct winbindd_response response;
     r = winbindd_request(WINBINDD_INTERFACE_VERSION, &request, &response);
-    if (r != WINBINDD_OK) {
+    if (r != NSS_STATUS_SUCCESS) {
        warn("Can't contact winbindd. Dying\n");
        exit(1);
     }