mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Fixing the fix ;-)
shadowLastChange has to be an integer
This commit is contained in:
parent
b0521b0b14
commit
5291d0ac39
@ -556,7 +556,7 @@ class accounts_ldap
|
|||||||
$data['account_passwd'] = auth::encrypt_ldap($data['account_passwd']);
|
$data['account_passwd'] = auth::encrypt_ldap($data['account_passwd']);
|
||||||
}
|
}
|
||||||
$to_write['userpassword'] = $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
|
// 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
|
// - if it's unset an account is enabled AND does never expire
|
||||||
|
@ -136,7 +136,7 @@ class auth_
|
|||||||
$allValues = ldap_get_entries($ds, $sri);
|
$allValues = ldap_get_entries($ds, $sri);
|
||||||
|
|
||||||
$entry['userpassword'] = auth::encrypt_password($new_passwd);
|
$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'];
|
$dn = $allValues[0]['dn'];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user