auth4: debug if method->ops->check_password() gives NOT_IMPLEMENTED
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Mar 2017 15:47:15 +0000 (16:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Mar 2017 10:57:10 +0000 (11:57 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth.c

index 0eb22602c7f513931f33b6197fa688e03e46500d..5d3fbef5636ef04c686916d4061a917773b70aa7 100644 (file)
@@ -374,7 +374,7 @@ static void auth_check_password_async_trigger(struct tevent_context *ev,
                status = method->ops->want_check(method, req, state->user_info);
                if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
                        DEBUG(11,("auth_check_password_send: "
-                                 "%s had nothing to say\n",
+                                 "%s doesn't want to check\n",
                                  method->ops->name));
                        continue;
                }
@@ -387,10 +387,15 @@ static void auth_check_password_async_trigger(struct tevent_context *ev,
                                                     state,
                                                     state->user_info,
                                                     &state->user_info_dc);
-               if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
-                       /* the backend has handled the request */
-                       break;
+               if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
+                       DEBUG(11,("auth_check_password_send: "
+                                 "%s passes to the next method\n",
+                                 method->ops->name));
+                       continue;
                }
+
+               /* the backend has handled the request */
+               break;
        }
 
        if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {