diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-30 09:41:43 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-30 09:48:28 +0200 |
commit | 9e7c6f12fdb6a8ce198359572bb9e69c7d46530a (patch) | |
tree | edf18daf2faa581537dc26fa033cdebeeeba50d0 /source3/winbindd/winbindd_sid.c | |
parent | 0d120be36bfc561e3f679d081993ccc6bea2a401 (diff) | |
download | samba-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.c | 24 |
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 ) { |