summaryrefslogtreecommitdiffstats
path: root/python/samba
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-02-27 15:17:35 +1300
committerStefan Metzmacher <metze@samba.org>2014-03-21 08:03:07 +0100
commitf596dc94e1ab839f13e2a9edbcec774635b5c211 (patch)
treef911e2af0ea7ea249d9a638e1d5dbf161e317a24 /python/samba
parent5277fc4d0393ffe2e415ad26610b36d2986c62d7 (diff)
downloadsamba-f596dc94e1ab839f13e2a9edbcec774635b5c211.tar.gz
samba-f596dc94e1ab839f13e2a9edbcec774635b5c211.tar.xz
samba-f596dc94e1ab839f13e2a9edbcec774635b5c211.zip
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>
Diffstat (limited to 'python/samba')
-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 4281e6bcbc3..e6f26c3753f 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