]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: Remove unused wb_cache_query_user
authorVolker Lendecke <vl@samba.org>
Mon, 2 Jan 2017 10:35:02 +0000 (10:35 +0000)
committerVolker Lendecke <vl@samba.org>
Wed, 4 Jan 2017 11:22:12 +0000 (12:22 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_proto.h

index a130b03ff1744e61daf944c5c3983c1ec8f6c211..18073809e0fbb3ea0453558dbc14a6a58906df80 100644 (file)
@@ -2372,56 +2372,6 @@ NTSTATUS wcache_query_user_fullname(struct winbindd_domain *domain,
        return NT_STATUS_OK;
 }
 
-/* Lookup user information from a rid */
-NTSTATUS wb_cache_query_user(struct winbindd_domain *domain,
-                            TALLOC_CTX *mem_ctx,
-                            const struct dom_sid *user_sid,
-                            struct wbint_userinfo *info)
-{
-       NTSTATUS status;
-       bool old_status;
-
-       old_status = domain->online;
-       status = wcache_query_user(domain, mem_ctx, user_sid, info);
-       if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
-               return status;
-       }
-
-       ZERO_STRUCTP(info);
-
-       /* Return status value returned by seq number check */
-
-       if (!NT_STATUS_IS_OK(domain->last_status))
-               return domain->last_status;
-
-       DEBUG(10,("query_user: [Cached] - doing backend query for info for domain %s\n",
-               domain->name ));
-
-       status = domain->backend->query_user(domain, mem_ctx, user_sid, info);
-
-       if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT) ||
-               NT_STATUS_EQUAL(status, NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND)) {
-               if (!domain->internal && old_status) {
-                       set_domain_offline(domain);
-               }
-               if (!domain->internal &&
-                       !domain->online &&
-                       old_status) {
-                       NTSTATUS cache_status;
-                       cache_status = wcache_query_user(domain, mem_ctx, user_sid, info);
-                       return cache_status;
-               }
-       }
-       /* and save it */
-       refresh_sequence_number(domain);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
-       wcache_save_user(domain, status, info);
-
-       return status;
-}
-
 NTSTATUS wcache_lookup_usergroups(struct winbindd_domain *domain,
                                  TALLOC_CTX *mem_ctx,
                                  const struct dom_sid *user_sid,
index 2b6f26e0315c0e78ccca203de640c20e5e46aa47..a4e05187d32dc0e5e148403df42fdf5c5ebf8c86 100644 (file)
@@ -90,10 +90,6 @@ NTSTATUS wb_cache_rids_to_names(struct winbindd_domain *domain,
                                char **domain_name,
                                char ***names,
                                enum lsa_SidType **types);
-NTSTATUS wb_cache_query_user(struct winbindd_domain *domain,
-                            TALLOC_CTX *mem_ctx,
-                            const struct dom_sid *user_sid,
-                            struct wbint_userinfo *info);
 NTSTATUS wb_cache_lookup_usergroups(struct winbindd_domain *domain,
                                    TALLOC_CTX *mem_ctx,
                                    const struct dom_sid *user_sid,