s3: Remove unused winbindd_dual_getuserdomgroups
authorVolker Lendecke <vl@samba.org>
Mon, 21 Dec 2009 13:58:21 +0000 (14:58 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 21 Dec 2009 15:27:19 +0000 (16:27 +0100)
source3/winbindd/winbindd_domain.c
source3/winbindd/winbindd_group.c
source3/winbindd/winbindd_proto.h

index cbb1a8ab9aab0f1287ee81204eaf54b54813524f..80f21795879b6b46e9ac0b16b03e07dadf6fcdc6 100644 (file)
@@ -62,10 +62,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 eab5c26df4fc2e16f1f176c1f45241d170671743..ffbaa499c22aab8065a2014a10edc64350e1163d 100644 (file)
@@ -221,52 +221,6 @@ struct getgroups_state {
        size_t num_token_gids;
 };
 
-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 = sidstring;
-       state->response->length += len+1;
-       state->response->data.num_entries = num_groups;
-
-       return WINBINDD_OK;
-}
-
 enum winbindd_result winbindd_dual_getsidaliases(struct winbindd_domain *domain,
                                                 struct winbindd_cli_state *state)
 {
index afcbcdbeca27151032df6fe054acd7375d0a0a67..950630b7e7726d19f4c6e81558f7c978ff129794 100644 (file)
@@ -353,8 +353,6 @@ void winbindd_getgroups(struct winbindd_cli_state *state);
 void winbindd_getusersids(struct winbindd_cli_state *state);
 void winbindd_getuserdomgroups(struct winbindd_cli_state *state);
 void winbindd_getsidaliases(struct winbindd_cli_state *state);
-enum winbindd_result winbindd_dual_getuserdomgroups(struct winbindd_domain *domain,
-                                                   struct winbindd_cli_state *state);
 bool get_sam_group_entries(struct getent_state *ent);
 bool fill_grent(TALLOC_CTX *mem_ctx, struct winbindd_gr *gr,
                const char *dom_name, const char *gr_name, gid_t unix_gid);