auth_winbind4: Correctly handle !authoritative
authorVolker Lendecke <vl@samba.org>
Sat, 25 Feb 2017 09:55:28 +0000 (09:55 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 10 Mar 2017 02:28:26 +0000 (03:28 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth_winbind.c

index 8b9a1ef3af9a4f11742b3662caf22a8b5aba4a74..6f1976de723ef3805177b379326c43dacb9345c6 100644 (file)
@@ -141,6 +141,11 @@ static NTSTATUS winbind_check_password(struct auth_method_context *ctx,
        status = dcerpc_winbind_SamLogon_r(irpc_handle, s, &s->req);
        NT_STATUS_NOT_OK_RETURN(status);
 
+       if (NT_STATUS_EQUAL(s->req.out.result, NT_STATUS_NO_SUCH_USER) &&
+           !s->req.out.authoritative) {
+               return NT_STATUS_NOT_IMPLEMENTED;
+       }
+
        status = make_user_info_dc_netlogon_validation(mem_ctx,
                                                      user_info->client.account_name,
                                                      s->req.in.validation_level,