summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_proto.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@us.ibm.com>2013-02-21 12:30:48 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-03-09 06:30:22 +0100
commit86d09ce779fdc9d6ebbbe44b25656808ab37ee14 (patch)
tree5a967ad323207002cbe61d88395b53e8c4b03306 /source3/winbindd/idmap_proto.h
parent666a5630ef3b03640089a0b6e81bf578b91b88ab (diff)
downloadsamba-86d09ce779fdc9d6ebbbe44b25656808ab37ee14.tar.gz
samba-86d09ce779fdc9d6ebbbe44b25656808ab37ee14.tar.bz2
samba-86d09ce779fdc9d6ebbbe44b25656808ab37ee14.zip
s3-winbindd: Move common code for LDAP id mapping to idmap_utils
idmap_ad and idmap_ldap use the same helper functions and the same maximum query size. Move the code to idmap_utils so that it can be shared by every module issuing LDAP queries. Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/winbindd/idmap_proto.h')
-rw-r--r--source3/winbindd/idmap_proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_proto.h b/source3/winbindd/idmap_proto.h
index 892b258d6a..a709807f68 100644
--- a/source3/winbindd/idmap_proto.h
+++ b/source3/winbindd/idmap_proto.h
@@ -54,5 +54,11 @@ NTSTATUS idmap_tdb_init(void);
NTSTATUS idmap_uid_to_sid(const char *domname, struct dom_sid *sid, uid_t uid);
NTSTATUS idmap_gid_to_sid(const char *domname, struct dom_sid *sid, gid_t gid);
bool idmap_unix_id_is_in_range(uint32_t id, struct idmap_domain *dom);
+struct id_map *idmap_find_map_by_id(struct id_map **maps, enum id_type type,
+ uint32_t id);
+struct id_map *idmap_find_map_by_sid(struct id_map **maps, struct dom_sid *sid);
+
+/* max number of ids requested per LDAP batch query */
+#define IDMAP_LDAP_MAX_IDS 30
#endif /* _WINBINDD_IDMAP_PROTO_H_ */