wb-ndr: remove unused winbindd_dual_getuserdomgroups()
authorStefan Metzmacher <metze@sernet.de>
Tue, 11 Mar 2008 15:40:37 +0000 (16:40 +0100)
committerStefan Metzmacher <metze@sernet.de>
Fri, 2 May 2008 14:13:35 +0000 (16:13 +0200)
metze

source/winbindd/winbindd_domain.c
source/winbindd/winbindd_group.c

index 462a0650e472ee620e717c805ed76a137251a101..0c0fba5935bbc3f8f02ff0403465c61ef99b739a 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           = "GETUSERDOMGROUPS",
-               .struct_cmd     = WINBINDD_GETUSERDOMGROUPS,
-               .struct_fn      = winbindd_dual_getuserdomgroups,
        },{
                .name           = "GETSIDALIASES",
                .struct_cmd     = WINBINDD_DUAL_GETSIDALIASES,
index 63fde9f495d11e08c879e8b5e83c8b41195a5733..4dbcda9d209fa050c05113a371148b4170939b43 100644 (file)
@@ -1713,50 +1713,3 @@ void winbindd_getuserdomgroups(struct winbindd_cli_state *state)
 
        sendto_domain(state, domain);
 }
-
-enum winbindd_result winbindd_dual_getuserdomgroups(struct winbindd_domain *domain,
-                                                   struct winbindd_cli_state *state)
-{
-       DOM_SID user_sid;
-       NTSTATUS status;
-
-       char *sidstring;
-       ssize_t len;
-       DOM_SID *groups;
-       uint32 num_groups;
-
-       /* Ensure null termination */
-       state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
-
-       if (!string_to_sid(&user_sid, state->request.data.sid)) {
-               DEBUG(1, ("Could not get convert sid %s from string\n",
-                         state->request.data.sid));
-               return WINBINDD_ERROR;
-       }
-
-       status = domain->methods->lookup_usergroups(domain, state->mem_ctx,
-                                                   &user_sid, &num_groups,
-                                                   &groups);
-       if (!NT_STATUS_IS_OK(status))
-               return WINBINDD_ERROR;
-
-       if (num_groups == 0) {
-               state->response.data.num_entries = 0;
-               state->response.extra_data.data = NULL;
-               return WINBINDD_OK;
-       }
-
-       if (!print_sidlist(state->mem_ctx, groups, num_groups, &sidstring, &len)) {
-               DEBUG(0, ("talloc failed\n"));
-               return WINBINDD_ERROR;
-       }
-
-       state->response.extra_data.data = SMB_STRDUP(sidstring);
-       if (!state->response.extra_data.data) {
-               return WINBINDD_ERROR;
-       }
-       state->response.length += len+1;
-       state->response.data.num_entries = num_groups;
-
-       return WINBINDD_OK;
-}