mirror of
https://github.com/samba-team/samba.git
synced 2025-07-14 12:59:07 +03:00
s4:samba3.py/upgrade.py: Revert
This reverts commit2175c0ed06
. This reverts commit6c3e2417a0
. This reverts commitdbb8989e05
. This reverts commit82adfa39b7
. This reverts commitf299efa8f0
. After a small discussion with Jelmer we agreed that this isn't the right way to fix the problem. We should wait for a real patch rather to rely on temporal hacks.
This commit is contained in:
@ -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, 3)
|
||||
assert self.version in (0, 1, 2)
|
||||
|
||||
def usernames(self):
|
||||
"""Iterate over the usernames in this Tdb database."""
|
||||
@ -592,11 +592,10 @@ class TdbSam(TdbDatabase):
|
||||
for entry in hours:
|
||||
for i in range(8):
|
||||
user.hours.append(ord(entry) & (2 ** i) == (2 ** i))
|
||||
# FIXME (reactivate also the tests in tests/samba3.py after fixing this)
|
||||
#(user.bad_password_count, data) = unpack_uint16(data)
|
||||
#(user.logon_count, data) = unpack_uint16(data)
|
||||
#(user.unknown_6, data) = unpack_uint32(data)
|
||||
#assert len(data) == 0
|
||||
(user.bad_password_count, data) = unpack_uint16(data)
|
||||
(user.logon_count, data) = unpack_uint16(data)
|
||||
(user.unknown_6, data) = unpack_uint32(data)
|
||||
assert len(data) == 0
|
||||
return user
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user