1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

s4:samba3.py - support the TDB version 3

This commit is contained in:
Matthias Dieter Wallnöfer 2009-11-27 14:58:37 +01:00
parent a5d854afbc
commit f299efa8f0

View 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."""