summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-09 07:17:35 -0400
committerVolker Lendecke <vl@samba.org>2009-08-16 10:38:24 +0200
commit6d100a6b20842cc950e85381908d3a2098f481e6 (patch)
tree3ef76aa87eddde8ccae8b1d891c121c8dbaa8edd
parent95c3d3b5d8fdc05f20c826a48312f1230f036029 (diff)
downloadsamba-6d100a6b20842cc950e85381908d3a2098f481e6.tar.gz
samba-6d100a6b20842cc950e85381908d3a2098f481e6.tar.bz2
samba-6d100a6b20842cc950e85381908d3a2098f481e6.zip
s3:winbind: Simplify _wbint_[GU]id2Sid
-rw-r--r--source3/winbindd/winbindd_dual_srv.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c
index 9be295ffdc..23d3de13a7 100644
--- a/source3/winbindd/winbindd_dual_srv.c
+++ b/source3/winbindd/winbindd_dual_srv.c
@@ -96,26 +96,14 @@ NTSTATUS _wbint_Sid2Gid(pipes_struct *p, struct wbint_Sid2Gid *r)
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;
+ return idmap_uid_to_sid(r->in.dom_name ? r->in.dom_name : "",
+ r->out.sid, r->in.uid);
}
NTSTATUS _wbint_Gid2Sid(pipes_struct *p, struct wbint_Gid2Sid *r)
{
- NTSTATUS status;
-
- status = idmap_gid_to_sid(r->in.dom_name ? r->in.dom_name : "",
- r->out.sid, r->in.gid);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
- return NT_STATUS_OK;
+ return idmap_gid_to_sid(r->in.dom_name ? r->in.dom_name : "",
+ r->out.sid, r->in.gid);
}
NTSTATUS _wbint_QueryUser(pipes_struct *p, struct wbint_QueryUser *r)