1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: Remove unused winbindd_dual_getuserdomgroups

This commit is contained in:
Volker Lendecke 2009-12-21 14:58:21 +01:00
parent 958fdaf5c3
commit 9568c762ac
3 changed files with 0 additions and 52 deletions

View 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,

View 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)
{

View 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);