diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-04 13:52:39 -0400 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-05 03:21:21 -0400 |
commit | 3eff8e93e283828afdb3413aec2dae5c01b101b3 (patch) | |
tree | 2b026feb68c2fb3060d3fdfa0747fbc88b288033 /source3/winbindd/winbindd_dual_srv.c | |
parent | 5db561a608a11895d8a9a038a98a9fcc7c867d59 (diff) | |
download | samba-3eff8e93e283828afdb3413aec2dae5c01b101b3.tar.gz samba-3eff8e93e283828afdb3413aec2dae5c01b101b3.tar.xz samba-3eff8e93e283828afdb3413aec2dae5c01b101b3.zip |
s3:winbind: Add async wb_uid2sid
Diffstat (limited to 'source3/winbindd/winbindd_dual_srv.c')
-rw-r--r-- | source3/winbindd/winbindd_dual_srv.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 670e53d0a9..bad9cd585a 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -93,3 +93,15 @@ NTSTATUS _wbint_Sid2Gid(pipes_struct *p, struct wbint_Sid2Gid *r) *r->out.gid = gid; return NT_STATUS_OK; } + +NTSTATUS _wbint_Uid2Sid(pipes_struct *p, struct wbint_Uid2Sid *r) +{ + NTSTATUS status; + + status = idmap_uid_to_sid(r->in.dom_name ? r->in.dom_name : "", + r->out.sid, r->in.uid); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + return NT_STATUS_OK; +} |