dsdb:replmd: add compatible feature helper function
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 14 Feb 2019 21:29:33 +0000 (10:29 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Mar 2019 21:41:18 +0000 (21:41 +0000)
commitbf50324fefdde7120838f17e6aee32ffc1345f22
tree2a46aa4ee63ff390cf1646f72b9687ee0317f8b6
parent7d8cfe02bb4ef30795ccbaee7233e73c29fa9e8c
dsdb:replmd: add compatible feature helper function

repl_meta_data.c uses the compatible features attribute of the
"@SAMBA_DSDB" special object to record that linked attributes are
being stored in the database in a sorted order. Soon the
linked_attributes module is going to want to know the same thing, and
in time other modules will want to know about other compatible
features, so we introduce a helper function.

Error checking is slightly improved.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
source4/dsdb/samdb/ldb_modules/util.c