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

index 710a403b8b01e72bef404654aa953e538af761d0..997894a680f22bb455528ab8e8bdf9e0ca0200f1 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_UID",
-               .struct_cmd     = WINBINDD_ALLOCATE_UID,
-               .struct_fn      = winbindd_dual_allocate_uid,
        },{
                .name           = "ALLOCATE_GID",
                .struct_cmd     = WINBINDD_ALLOCATE_GID,
index 59e9af843d7dbfb5c0d8b8e00762a091c1fd9095..eca5d12364bc86dbc1a673fbd3361c26355409e8 100644 (file)
@@ -505,18 +505,6 @@ nomem:
        return;
 }
 
-enum winbindd_result winbindd_dual_allocate_uid(struct winbindd_domain *domain,
-                                               struct winbindd_cli_state *state)
-{
-       struct unixid xid;
-
-       if (!NT_STATUS_IS_OK(idmap_allocate_uid(&xid))) {
-               return WINBINDD_ERROR;
-       }
-       state->response.data.uid = xid.id;
-       return WINBINDD_OK;
-}
-
 void winbindd_allocate_gid(struct winbindd_cli_state *state)
 {
        if ( !state->privileged ) {