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_dual_srv.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_dual_srv.c')
-rw-r--r-- | source3/winbindd/winbindd_dual_srv.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 8bea6ac03a..3b6107a398 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -119,6 +119,19 @@ NTSTATUS _wbint_AllocateUid(pipes_struct *p, struct wbint_AllocateUid *r) return NT_STATUS_OK; } +NTSTATUS _wbint_AllocateGid(pipes_struct *p, struct wbint_AllocateGid *r) +{ + struct unixid xid; + NTSTATUS status; + + status = idmap_allocate_gid(&xid); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + *r->out.gid = xid.id; + return NT_STATUS_OK; +} + NTSTATUS _wbint_QueryUser(pipes_struct *p, struct wbint_QueryUser *r) { struct winbindd_domain *domain = wb_child_domain(); |