summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_sid.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-30 09:41:43 +0200
committerVolker Lendecke <vl@samba.org>2009-08-30 09:48:28 +0200
commit9e7c6f12fdb6a8ce198359572bb9e69c7d46530a (patch)
treeedf18daf2faa581537dc26fa033cdebeeeba50d0 /source3/winbindd/winbindd_sid.c
parent0d120be36bfc561e3f679d081993ccc6bea2a401 (diff)
downloadsamba-9e7c6f12fdb6a8ce198359572bb9e69c7d46530a.tar.gz
samba-9e7c6f12fdb6a8ce198359572bb9e69c7d46530a.tar.bz2
samba-9e7c6f12fdb6a8ce198359572bb9e69c7d46530a.zip
w3:winbind: Convert WINBINDD_ALLOCATE_UID to the new API
Diffstat (limited to 'source3/winbindd/winbindd_sid.c')
-rw-r--r--source3/winbindd/winbindd_sid.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/source3/winbindd/winbindd_sid.c b/source3/winbindd/winbindd_sid.c
index 8f09d5f7eb..717a0272d6 100644
--- a/source3/winbindd/winbindd_sid.c
+++ b/source3/winbindd/winbindd_sid.c
@@ -141,30 +141,6 @@ void winbindd_set_hwm(struct winbindd_cli_state *state)
winbindd_set_hwm_async(state->mem_ctx, &xid, set_hwm_recv, state);
}
-void winbindd_allocate_uid(struct winbindd_cli_state *state)
-{
- if ( !state->privileged ) {
- DEBUG(2, ("winbindd_allocate_uid: non-privileged access "
- "denied!\n"));
- request_error(state);
- return;
- }
-
- sendto_child(state, idmap_child());
-}
-
-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 ) {