dbcheck: use samdb_schema for getting the backlink
authorAndrew Tridgell <tridge@samba.org>
Wed, 13 Jul 2011 03:26:19 +0000 (13:26 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 13 Jul 2011 10:51:05 +0000 (12:51 +0200)
this is not available on an ldap samdb

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/python/samba/dbchecker.py

index 8de1d26775a603dd2fbbf44671f6362cbcf62dd0..a1836cf98ef621ed5ea442ceb4dc828d1114d2a5 100644 (file)
@@ -320,7 +320,7 @@ class dbcheck(object):
 
             attrs=['isDeleted']
             linkkID = self.samdb_schema.get_linkId_from_lDAPDisplayName(attrname)
-            reverse_link_name = self.samdb.get_backlink_from_lDAPDisplayName(attrname)
+            reverse_link_name = self.samdb_schema.get_backlink_from_lDAPDisplayName(attrname)
             if reverse_link_name is not None:
                 attrs.append(reverse_link_name)