|
Lines 145-156
class S4:
Link Here
|
| 145 |
modlist = [] |
145 |
modlist = [] |
| 146 |
unicodePwd_attr = res_s4[0][1].get('unicodePwd', [None])[0] |
146 |
unicodePwd_attr = res_s4[0][1].get('unicodePwd', [None])[0] |
| 147 |
if unicodePwd_attr: |
147 |
if unicodePwd_attr: |
| 148 |
binascii.b2a_hex(unicodePwd_attr).upper() # nt hash |
|
|
| 149 |
|
| 150 |
dBCSPwd = res_s4[0][1].get('dBCSPwd', [None])[0] |
| 151 |
if dBCSPwd: |
| 152 |
binascii.b2a_hex(dBCSPwd).upper() # lm hash |
| 153 |
|
| 154 |
supplementalCredentials = res_s4[0][1].get('supplementalCredentials', [None])[0] |
148 |
supplementalCredentials = res_s4[0][1].get('supplementalCredentials', [None])[0] |
| 155 |
msDS_KeyVersionNumber = res_s4[0][1].get('msDS-KeyVersionNumber', [0])[0] |
149 |
msDS_KeyVersionNumber = res_s4[0][1].get('msDS-KeyVersionNumber', [0])[0] |
| 156 |
|
150 |
|