|
2153 |
|
2153 |
|
2154 |
smbpwhistoryPolicy = self.loadPolicyObject('policies/pwhistory') |
2154 |
smbpwhistoryPolicy = self.loadPolicyObject('policies/pwhistory') |
2155 |
if smbpwhistoryPolicy is not None and smbpwhistoryPolicy['length'] is not None and len(smbpwhistoryPolicy['length']) > 0: |
2155 |
if smbpwhistoryPolicy is not None and smbpwhistoryPolicy['length'] is not None and len(smbpwhistoryPolicy['length']) > 0: |
2156 |
smbpwhlen = int(pwhistoryPolicy['length']) |
2156 |
smbpwhlen = int(smbpwhistoryPolicy['length']) |
2157 |
smbpwhistory = self.oldattr.get('sambaPasswordHistory', [''])[0] |
2157 |
smbpwhistory = self.oldattr.get('sambaPasswordHistory', [''])[0] |
2158 |
newsmbPWHistory = self.__getsmbPWHistory(password_nt, smbpwhistory, smbpwhlen) |
2158 |
newsmbPWHistory = self.__getsmbPWHistory(password_nt, smbpwhistory, smbpwhlen) |
2159 |
ml.append(('sambaPasswordHistory', self.oldattr.get('sambaPasswordHistory', [''])[0], newsmbPWHistory)) |
2159 |
ml.append(('sambaPasswordHistory', self.oldattr.get('sambaPasswordHistory', [''])[0], newsmbPWHistory)) |