diff options
author | Volker Lendecke <vl@samba.org> | 2017-01-02 15:56:48 +0000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2017-01-04 12:22:12 +0100 |
commit | 241c81b2763392439043261cf179cd2c8793faed (patch) | |
tree | 09d7f16cff2fe7b667013899b22ba0db76c3982d /source3/winbindd/winbindd_samr.c | |
parent | 81f340097436280a90ba252d00f37c644a6be084 (diff) | |
download | samba-241c81b2763392439043261cf179cd2c8793faed.tar.gz |
winbind: Remove "query_user" backend function
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_samr.c')
-rw-r--r-- | source3/winbindd/winbindd_samr.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/source3/winbindd/winbindd_samr.c b/source3/winbindd/winbindd_samr.c index dce26d2f5a0..0ce98ab542a 100644 --- a/source3/winbindd/winbindd_samr.c +++ b/source3/winbindd/winbindd_samr.c @@ -225,59 +225,6 @@ done: return status; } -/* Lookup user information from a rid or username. */ -static NTSTATUS sam_query_user(struct winbindd_domain *domain, - TALLOC_CTX *mem_ctx, - const struct dom_sid *user_sid, - struct wbint_userinfo *user_info) -{ - struct rpc_pipe_client *samr_pipe; - struct policy_handle dom_pol; - TALLOC_CTX *tmp_ctx; - NTSTATUS status, result; - struct dcerpc_binding_handle *b = NULL; - - DEBUG(3,("sam_query_user\n")); - - ZERO_STRUCT(dom_pol); - - /* Paranoia check */ - if (!sid_check_is_in_our_sam(user_sid)) { - return NT_STATUS_NO_SUCH_USER; - } - - user_info->homedir = NULL; - user_info->shell = NULL; - user_info->primary_gid = (gid_t) -1; - - tmp_ctx = talloc_stackframe(); - if (tmp_ctx == NULL) { - return NT_STATUS_NO_MEMORY; - } - - status = open_internal_samr_conn(tmp_ctx, domain, &samr_pipe, &dom_pol); - if (!NT_STATUS_IS_OK(status)) { - goto done; - } - - b = samr_pipe->binding_handle; - - status = rpc_query_user(tmp_ctx, - samr_pipe, - &dom_pol, - &domain->sid, - user_sid, - user_info); - -done: - if (b && is_valid_policy_hnd(&dom_pol)) { - dcerpc_samr_Close(b, mem_ctx, &dom_pol, &result); - } - - TALLOC_FREE(tmp_ctx); - return status; -} - /* get a list of trusted domains - builtin domain */ static NTSTATUS sam_trusted_domains(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, @@ -447,15 +394,6 @@ static NTSTATUS builtin_query_user_list(struct winbindd_domain *domain, return NT_STATUS_OK; } -/* Lookup user information from a rid or username. */ -static NTSTATUS builtin_query_user(struct winbindd_domain *domain, - TALLOC_CTX *mem_ctx, - const struct dom_sid *user_sid, - struct wbint_userinfo *user_info) -{ - return NT_STATUS_NO_SUCH_USER; -} - /* get a list of trusted domains - builtin domain */ static NTSTATUS builtin_trusted_domains(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, @@ -1040,7 +978,6 @@ struct winbindd_methods builtin_passdb_methods = { .name_to_sid = sam_name_to_sid, .sid_to_name = sam_sid_to_name, .rids_to_names = sam_rids_to_names, - .query_user = builtin_query_user, .lookup_usergroups = sam_lookup_usergroups, .lookup_useraliases = sam_lookup_useraliases, .lookup_groupmem = sam_lookup_groupmem, @@ -1060,7 +997,6 @@ struct winbindd_methods sam_passdb_methods = { .name_to_sid = sam_name_to_sid, .sid_to_name = sam_sid_to_name, .rids_to_names = sam_rids_to_names, - .query_user = sam_query_user, .lookup_usergroups = sam_lookup_usergroups, .lookup_useraliases = sam_lookup_useraliases, .lookup_groupmem = sam_lookup_groupmem, |