From f596dc94e1ab839f13e2a9edbcec774635b5c211 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 27 Feb 2014 15:17:35 +1300 Subject: dbcheck: Ensure dbcheck can operate with --attrs set This also includes a test to ensure we do not regress on this point. Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- python/samba/dbchecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/samba/dbchecker.py') diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py index 4281e6bcbc..e6f26c3753 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -1142,7 +1142,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base))) 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 -- cgit