s4:samba3.py - support the TDB version 3
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 27 Nov 2009 13:58:37 +0000 (14:58 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 27 Nov 2009 13:58:37 +0000 (14:58 +0100)
source4/scripting/python/samba/samba3.py

index 179efa2700aaeba8bc661ed3e385e2ab1c15628e..4407677d5dd38bc7c3943d59eef1f9d1234f28a5 100644 (file)
@@ -509,7 +509,7 @@ class TdbSam(TdbDatabase):
     """Samba 3 TDB passdb backend reader."""
     def _check_version(self):
         self.version = fetch_uint32(self.tdb, "INFO/version\0") or 0
-        assert self.version in (0, 1, 2)
+        assert self.version in (0, 1, 2, 3)
 
     def usernames(self):
         """Iterate over the usernames in this Tdb database."""