summaryrefslogtreecommitdiff
path: root/python/samba
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-01-30 12:19:31 +0100
committerKarolin Seeger <kseeger@samba.org>2018-02-09 09:30:22 +0100
commit307ffdcb9c16c0cef166d4f2a86b3b97a6ca7480 (patch)
tree232c2728a0315a6ccce0390763666ebc2efcc621 /python/samba
parent5f933b99bda3e266f96da3b73e70a9d6966e6ba7 (diff)
downloadsamba-307ffdcb9c16c0cef166d4f2a86b3b97a6ca7480.tar.gz
dbcheck: make sure we ask for replPropertyMetaData if we need to process any forward link attributes
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13228 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 182fb3c4c9db8715d0dbcbc3d1aa0655b5cb29f1)
Diffstat (limited to 'python/samba')
-rw-r--r--python/samba/dbchecker.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py
index 5ae57e29b8d..5b9c5515a06 100644
--- a/python/samba/dbchecker.py
+++ b/python/samba/dbchecker.py
@@ -1811,7 +1811,19 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base)))
attrs.append(dn.get_rdn_name())
attrs.append("isDeleted")
attrs.append("systemFlags")
+ need_replPropertyMetaData = False
if '*' in attrs:
+ need_replPropertyMetaData = True
+ else:
+ for a in attrs:
+ linkID, _ = self.get_attr_linkID_and_reverse_name(a)
+ if linkID == 0:
+ continue
+ if linkID & 1:
+ continue
+ need_replPropertyMetaData = True
+ break
+ if need_replPropertyMetaData:
attrs.append("replPropertyMetaData")
attrs.append("objectGUID")