summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_proto.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-11-17 02:30:07 +0100
committerStefan Metzmacher <metze@samba.org>2012-12-03 08:48:21 +0100
commit8e5ce1e2d53f36fd35eb8efad7da680dcf0b1ce1 (patch)
treeaa270f566a0bc5754582326afa1cec838b5dff27 /source3/winbindd/winbindd_proto.h
parentc58c68d5ba58855098d24c54db9c0cda19db0f4b (diff)
downloadsamba-8e5ce1e2d53f36fd35eb8efad7da680dcf0b1ce1.tar.gz
samba-8e5ce1e2d53f36fd35eb8efad7da680dcf0b1ce1.tar.bz2
samba-8e5ce1e2d53f36fd35eb8efad7da680dcf0b1ce1.zip
s3:winbindd: factor winbindd_sids_to_xids into external and internal part
- external part takes winbindd request/reponse structs (with sid strings) - internal part takes sid lists The new internal part implements functions wb_sids2xids_* that are moved into the new module wb_sids2xids.c. The purpose of this change is to use wb_sids2xids in winbindd_sid_to_uid and winbindd_sid_to_gid instead of the currently used wb_sid2uid and wb_sid2gid. We should just have one code path into id mapping and not several that behave differently. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_proto.h')
-rw-r--r--source3/winbindd/winbindd_proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index b4f0852ac3..4e5fb7389c 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -860,6 +860,12 @@ NTSTATUS wb_lookupsids_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
struct lsa_RefDomainList **domains,
struct lsa_TransNameArray **names);
+struct tevent_req *wb_sids2xids_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ const struct dom_sid *sids,
+ const uint32_t num_sids);
+NTSTATUS wb_sids2xids_recv(struct tevent_req *req,
+ struct unixid *xids);
struct tevent_req *winbindd_sids_to_xids_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct winbindd_cli_state *cli,