samba-tool dbcheck: Use dsdb.DS_GUID_DELETED_OBJECTS_CONTAINER rather than the litera...
authorAndrew Bartlett <abartlet@samba.org>
Sun, 14 Apr 2013 03:32:05 +0000 (13:32 +1000)
committerStefan Metzmacher <metze@samba.org>
Thu, 16 May 2013 17:02:02 +0000 (19:02 +0200)
This is better practice.

Andrew Bartlett

Reviewed-by: Stefan Metzmacher <metze@samba.org>
python/samba/dbchecker.py

index d0d0ab384cefa6edc79fda85655af83d055d7ae7..e88f876bb01fb32494d404cc1849a3057b7892e8 100644 (file)
@@ -251,7 +251,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base)))
 
     def is_deleted_objects_dn(self, dsdb_dn):
         '''see if a dsdb_Dn is the special Deleted Objects DN'''
-        return dsdb_dn.prefix == "B:32:18E2EA80684F11D2B9AA00C04F79F805:"
+        return dsdb_dn.prefix == "B:32:%s:" % dsdb.DS_GUID_DELETED_OBJECTS_CONTAINER
 
     def err_deleted_dn(self, dn, attrname, val, dsdb_dn, correct_dn):
         """handle a DN pointing to a deleted object"""