diff options
author | Michael Adam <obnox@samba.org> | 2013-09-18 01:54:58 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-10-02 00:50:12 +0200 |
commit | 97dfa06151e8ea843c393f63c2c4b956810b2994 (patch) | |
tree | 660c497b35c40fecd451884fcf6521a8e8c09a5b /source3/include/idmap_autorid_tdb.h | |
parent | 54a33ebf273d8f5c9d66b20257f7baf5cc920386 (diff) | |
download | samba-97dfa06151e8ea843c393f63c2c4b956810b2994.tar.gz samba-97dfa06151e8ea843c393f63c2c4b956810b2994.tar.bz2 samba-97dfa06151e8ea843c393f63c2c4b956810b2994.zip |
idmap_autorid: add idmap_autorid_iterate_domain_ranges[_read]()
Functions to perform an action on all domain range mappings for
a given domain, specified by the domain sid.
Inspired by a previous patch by Atul Kulkarni <atul.kulkarni@in.ibm.com>.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/include/idmap_autorid_tdb.h')
-rw-r--r-- | source3/include/idmap_autorid_tdb.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/source3/include/idmap_autorid_tdb.h b/source3/include/idmap_autorid_tdb.h index 389ab922f9..7a6be7d55f 100644 --- a/source3/include/idmap_autorid_tdb.h +++ b/source3/include/idmap_autorid_tdb.h @@ -157,4 +157,35 @@ bool idmap_autorid_parse_configstr(const char *configstr, NTSTATUS idmap_autorid_saveconfigstr(struct db_context *db, const char *configstr); + +/** + * idmap_autorid_iterate_domain_ranges: + * perform an action on all domain range mappings for a given domain + * specified by domain sid. + */ +NTSTATUS idmap_autorid_iterate_domain_ranges(struct db_context *db, + const char *domsid, + NTSTATUS (*fn)(struct db_context *db, + const char *domsid, + uint32_t index, + uint32_t rangenum, + void *private_data), + void *private_data, + int *count); + +/** + * idmap_autorid_iterate_domain_ranges_read: + * perform a read only action on all domain range mappings for a given domain + * specified by domain sid. + */ +NTSTATUS idmap_autorid_iterate_domain_ranges_read(struct db_context *db, + const char *domsid, + NTSTATUS (*fn)(struct db_context *db, + const char *domsid, + uint32_t index, + uint32_t rangenum, + void *private_data), + void *private_data, + int *count); + #endif /* _IDMAP_AUTORID_H_ */ |