mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Fixing the fix ;-)
shadowLastChange has to be an interger.
This commit is contained in:
parent
a80ffb6223
commit
88862bcb9b
@ -556,7 +556,7 @@ class accounts_ldap
|
||||
$data['account_passwd'] = auth::encrypt_ldap($data['account_passwd']);
|
||||
}
|
||||
$to_write['userpassword'] = $data['account_passwd'];
|
||||
$to_write['shadowLastChange'] = (time()-$utc_diff) / (24*3600);
|
||||
$to_write['shadowLastChange'] = round((time()-$utc_diff) / (24*3600));
|
||||
}
|
||||
// both status and expires are encoded in the single shadowexpire value in LDAP
|
||||
// - if it's unset an account is enabled AND does never expire
|
||||
|
@ -136,7 +136,7 @@ class auth_
|
||||
$allValues = ldap_get_entries($ds, $sri);
|
||||
|
||||
$entry['userpassword'] = auth::encrypt_password($new_passwd);
|
||||
$entry['shadowLastChange'] = (time()-date('Z')) / (24*3600);
|
||||
$entry['shadowLastChange'] = round((time()-date('Z')) / (24*3600));
|
||||
|
||||
$dn = $allValues[0]['dn'];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user