remove winbindd_dual_allocate_gid()...
authorStefan Metzmacher <metze@sernet.de>
Wed, 12 Dec 2007 16:16:13 +0000 (17:16 +0100)
committerStefan Metzmacher <metze@sernet.de>
Fri, 2 May 2008 14:12:46 +0000 (16:12 +0200)
source/winbindd/winbindd_idmap.c
source/winbindd/winbindd_sid.c

index 997894a680f22bb455528ab8e8bdf9e0ca0200f1..718a531d1e6b1e95e21f3350f23055c398f605f7 100644 (file)
@@ -750,10 +750,6 @@ static const struct winbindd_child_dispatch_table idmap_dispatch_table[] = {
                .name           = "DUAL_SET_HWMS",
                .struct_cmd     = WINBINDD_DUAL_SET_HWM,
                .struct_fn      = winbindd_dual_set_hwm,
-       },{
-               .name           = "ALLOCATE_GID",
-               .struct_cmd     = WINBINDD_ALLOCATE_GID,
-               .struct_fn      = winbindd_dual_allocate_gid,
        },{
                .name           = "NDR_WINBIND_GET_IDMAP",
                .ndr_opnum      = NDR_WINBIND_GET_IDMAP,
index a0a7f632eae5ae13d14598436d73d09daf2e637c..0d8f7a94cf445c5d69b6e72b482e69818e173191 100644 (file)
@@ -567,15 +567,3 @@ nomem:
        request_error(state);
        return;
 }
-
-enum winbindd_result winbindd_dual_allocate_gid(struct winbindd_domain *domain,
-                                               struct winbindd_cli_state *state)
-{
-       struct unixid xid;
-
-       if (!NT_STATUS_IS_OK(idmap_allocate_gid(&xid))) {
-               return WINBINDD_ERROR;
-       }
-       state->response.data.gid = xid.id;
-       return WINBINDD_OK;
-}