summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-02-27 15:17:35 +1300
committerKarolin Seeger <kseeger@samba.org>2014-07-15 12:46:16 +0200
commit38c5f5b49e1abcdf3e4d9ef2160de3f9069497f1 (patch)
tree78cf151d7928b87a37b00ada8ac3e0b627dd7d07 /python
parente4bf67aed49b16610f517f871576bb644312c9c1 (diff)
downloadsamba-38c5f5b49e1abcdf3e4d9ef2160de3f9069497f1.tar.gz
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 <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit f596dc94e1ab839f13e2a9edbcec774635b5c211)
Diffstat (limited to 'python')
-rw-r--r--python/samba/dbchecker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py
index e96062e475b..c65861087f7 100644
--- a/python/samba/dbchecker.py
+++ b/python/samba/dbchecker.py
@@ -1268,7 +1268,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