This also includes a test to ensure we do not regress on this point.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
self.fix_metadata(dn, att)
if self.is_fsmo_role(dn):
- if "fSMORoleOwner" not in obj:
+ if "fSMORoleOwner" not in obj and ("*" in attrs or "fsmoroleowner" in map(str.lower, attrs)):
self.err_no_fsmoRoleOwner(obj)
error_count += 1
$BINDIR/samba-tool dbcheck --reindex
}
+fixed_attrs() {
+ $BINDIR/samba-tool dbcheck --attrs=cn
+}
+
force_modules() {
$BINDIR/samba-tool dbcheck --force-modules
}
testit "dbcheck" dbcheck
testit "reindex" reindex
+testit "fixed_attrs" fixed_attrs
testit "force_modules" force_modules
exit $failed