wb-ndr: remove unused WINBINDD_DUAL_GETSIDALIASES support
authorStefan Metzmacher <metze@sernet.de>
Tue, 11 Mar 2008 19:57:06 +0000 (20:57 +0100)
committerStefan Metzmacher <metze@sernet.de>
Fri, 2 May 2008 14:13:37 +0000 (16:13 +0200)
metze

source/winbindd/winbindd_async.c
source/winbindd/winbindd_domain.c

index 599bfa58426d3e54661463b4257e748f2657453b..cac0b1a80389fc3b906a4bdc4bcfae9bdab381b4 100644 (file)
@@ -968,92 +968,6 @@ nomem:
        return;
 }
 
-enum winbindd_result winbindd_dual_getsidaliases(struct winbindd_domain *domain,
-                                                struct winbindd_cli_state *state)
-{
-       DOM_SID *sids = NULL;
-       size_t num_sids = 0;
-       char *sidstr = NULL;
-       ssize_t len;
-       size_t i;
-       uint32 num_aliases;
-       uint32 *alias_rids;
-       NTSTATUS result;
-
-       DEBUG(3, ("[%5lu]: getsidaliases\n", (unsigned long)state->pid));
-
-       sidstr = state->request.extra_data.data;
-       if (sidstr == NULL) {
-               sidstr = talloc_strdup(state->mem_ctx, "\n"); /* No SID */
-               if (!sidstr) {
-                       DEBUG(0, ("Out of memory\n"));
-                       return WINBINDD_ERROR;
-               }
-       }
-
-       DEBUG(10, ("Sidlist: %s\n", sidstr));
-
-       if (!parse_sidlist(state->mem_ctx, sidstr, &sids, &num_sids)) {
-               DEBUG(0, ("Could not parse SID list: %s\n", sidstr));
-               return WINBINDD_ERROR;
-       }
-
-       num_aliases = 0;
-       alias_rids = NULL;
-
-       result = domain->methods->lookup_useraliases(domain,
-                                                    state->mem_ctx,
-                                                    num_sids, sids,
-                                                    &num_aliases,
-                                                    &alias_rids);
-
-       if (!NT_STATUS_IS_OK(result)) {
-               DEBUG(3, ("Could not lookup_useraliases: %s\n",
-                         nt_errstr(result)));
-               return WINBINDD_ERROR;
-       }
-
-       num_sids = 0;
-       sids = NULL;
-       sidstr = NULL;
-
-       DEBUG(10, ("Got %d aliases\n", num_aliases));
-
-       for (i=0; i<num_aliases; i++) {
-               DOM_SID sid;
-               DEBUGADD(10, (" rid %d\n", alias_rids[i]));
-               sid_copy(&sid, &domain->sid);
-               sid_append_rid(&sid, alias_rids[i]);
-               result = add_sid_to_array(state->mem_ctx, &sid, &sids,
-                                         &num_sids);
-               if (!NT_STATUS_IS_OK(result)) {
-                       return WINBINDD_ERROR;
-               }
-       }
-
-
-       if (!print_sidlist(state->mem_ctx, sids, num_sids, &sidstr, &len)) {
-               DEBUG(0, ("Could not print_sidlist\n"));
-               state->response.extra_data.data = NULL;
-               return WINBINDD_ERROR;
-       }
-
-       state->response.extra_data.data = NULL;
-
-       if (sidstr) {
-               state->response.extra_data.data = SMB_STRDUP(sidstr);
-               if (!state->response.extra_data.data) {
-                       DEBUG(0, ("Out of memory\n"));
-                       return WINBINDD_ERROR;
-               }
-               DEBUG(10, ("aliases_list: %s\n",
-                          (char *)state->response.extra_data.data));
-               state->response.length += len+1;
-       }
-       
-       return WINBINDD_OK;
-}
-
 struct gettoken_state {
        TALLOC_CTX *mem_ctx;
        DOM_SID user_sid;
index 0c0fba5935bbc3f8f02ff0403465c61ef99b739a..acf992705db12e439fbf0578376c0aca642fcdac 100644 (file)
@@ -65,10 +65,6 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
                .name           = "PAM_CHAUTHTOK",
                .struct_cmd     = WINBINDD_PAM_CHAUTHTOK,
                .struct_fn      = winbindd_dual_pam_chauthtok,
-       },{
-               .name           = "GETSIDALIASES",
-               .struct_cmd     = WINBINDD_DUAL_GETSIDALIASES,
-               .struct_fn      = winbindd_dual_getsidaliases,
        },{
                .name           = "CCACHE_NTLM_AUTH",
                .struct_cmd     = WINBINDD_CCACHE_NTLMAUTH,