.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,
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 ) {