It is not nttime2unix as it claimed.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
self.gp_db.store(str(self), self.attribute, old_val)
self.ldb.set_pwdProperties(val)
self.gp_db.store(str(self), self.attribute, old_val)
self.ldb.set_pwdProperties(val)
+ def days2rel_nttime(self):
seconds = 60
minutes = 60
hours = 24
seconds = 60
minutes = 60
hours = 24
def mapper(self):
'''ldap value : samba setter'''
def mapper(self):
'''ldap value : samba setter'''
- return { "minPwdAge" : (self.ch_minPwdAge, self.nttime2unix),
- "maxPwdAge" : (self.ch_maxPwdAge, self.nttime2unix),
+ return { "minPwdAge" : (self.ch_minPwdAge, self.days2rel_nttime),
+ "maxPwdAge" : (self.ch_maxPwdAge, self.days2rel_nttime),
# Could be none, but I like the method assignment in update_samba
"minPwdLength" : (self.ch_minPwdLength, self.explicit),
"pwdProperties" : (self.ch_pwdProperties, self.explicit),
# Could be none, but I like the method assignment in update_samba
"minPwdLength" : (self.ch_minPwdLength, self.explicit),
"pwdProperties" : (self.ch_pwdProperties, self.explicit),