diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-04-14 13:32:05 +1000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-05-16 19:02:02 +0200 |
commit | ef895fe9e4e4043bd4ce1db5007fd2016f0b8673 (patch) | |
tree | 0fd88c534f66a68cc8547ed0c8cd9404677f6218 | |
parent | 9c5756c077896e6a3ff8e610acf706f203e4dede (diff) | |
download | samba-ef895fe9e4e4043bd4ce1db5007fd2016f0b8673.tar.gz samba-ef895fe9e4e4043bd4ce1db5007fd2016f0b8673.tar.bz2 samba-ef895fe9e4e4043bd4ce1db5007fd2016f0b8673.zip |
samba-tool dbcheck: Use dsdb.DS_GUID_DELETED_OBJECTS_CONTAINER rather than the literal value
This is better practice.
Andrew Bartlett
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | python/samba/dbchecker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py index d0d0ab384c..e88f876bb0 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -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""" |