diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-30 09:46:34 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-30 09:48:28 +0200 |
commit | 0cae043b0c1d2fa55f6709230658155caaecb4fc (patch) | |
tree | 835f5b2809527a5952abdca6f1dd86119973be69 /source3/winbindd/winbindd_sid.c | |
parent | 9e7c6f12fdb6a8ce198359572bb9e69c7d46530a (diff) | |
download | samba-0cae043b0c1d2fa55f6709230658155caaecb4fc.tar.gz samba-0cae043b0c1d2fa55f6709230658155caaecb4fc.tar.bz2 samba-0cae043b0c1d2fa55f6709230658155caaecb4fc.zip |
w3:winbind: Convert WINBINDD_ALLOCATE_GID 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 717a0272d6..80d4677d75 100644 --- a/source3/winbindd/winbindd_sid.c +++ b/source3/winbindd/winbindd_sid.c @@ -140,27 +140,3 @@ void winbindd_set_hwm(struct winbindd_cli_state *state) winbindd_set_hwm_async(state->mem_ctx, &xid, set_hwm_recv, state); } - -void winbindd_allocate_gid(struct winbindd_cli_state *state) -{ - if ( !state->privileged ) { - DEBUG(2, ("winbindd_allocate_gid: non-privileged access " - "denied!\n")); - request_error(state); - return; - } - - sendto_child(state, idmap_child()); -} - -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; -} |