|
Lines 166-185
Link Here
|
| 166 |
traceback.print_exc() |
166 |
traceback.print_exc() |
| 167 |
|
167 |
|
| 168 |
|
168 |
|
| 169 |
def decode_pwdLastSet(value): |
|
|
| 170 |
print "# decoded (Note: timezone not converted to local time):" |
| 171 |
if long(value) == -1: |
| 172 |
print "# %s: Just set" % self.attrname |
| 173 |
elif long(value) == 0: |
| 174 |
print "# %s: Must change on next logon" % self.attrname |
| 175 |
else: |
| 176 |
try: |
| 177 |
print "# pwdLastSet: %s" % decode_100nanosectimestamp(value) |
| 178 |
except: |
| 179 |
print "# traceback during decoding:" |
| 180 |
traceback.print_exc() |
| 181 |
|
| 182 |
|
| 183 |
class decode_drsblob(): |
169 |
class decode_drsblob(): |
| 184 |
|
170 |
|
| 185 |
def __init__(self, blobtype): |
171 |
def __init__(self, blobtype): |
|
Lines 203-209
Link Here
|
| 203 |
'supplementalCredentials': decode_supplementalCredentials, |
189 |
'supplementalCredentials': decode_supplementalCredentials, |
| 204 |
'unicodePwd': decode_unicodePwd, |
190 |
'unicodePwd': decode_unicodePwd, |
| 205 |
'krb5Key': decode_krb5Key, |
191 |
'krb5Key': decode_krb5Key, |
| 206 |
'pwdLastSet': decode_pwdLastSet, |
192 |
'pwdLastSet': decode_lastDate("pwdLastSet"), |
| 207 |
'accountExpires': decode_accountExpires, |
193 |
'accountExpires': decode_accountExpires, |
| 208 |
'badPasswordTime': decode_lastDate('badPasswordTime'), |
194 |
'badPasswordTime': decode_lastDate('badPasswordTime'), |
| 209 |
'lastLogoff': decode_lastDate('lastLogoff'), |
195 |
'lastLogoff': decode_lastDate('lastLogoff'), |