import samba.tests
from samba import credentials, generate_random_password, ntstatus
from samba.nt_time import (nt_time_delta_from_timedelta,
- nt_now, string_from_nt_time)
+ nt_now, NtTime, string_from_nt_time)
from samba.dcerpc import security, netlogon
from samba.dsdb import UF_PASSWORD_EXPIRED, UF_DONT_EXPIRE_PASSWD
from samba.tests.pso import PasswordSettings
self._test_samlogon(creds=client_creds,
logon_type=netlogon.NetlogonNetworkInformation)
- pwd_last_set = int(res[0]["pwdLastSet"][0])
+ pwd_last_set = NtTime(int(res[0]["pwdLastSet"][0]))
self.assertGreater(pwd_last_set, 0)
# This just checks the value is sensible