fixed silent unlocking of passwords
This commit is contained in:
parent
d2e45b846d
commit
12edc0beca
|
@ -2,6 +2,7 @@
|
||||||
- fixed bugs:
|
- fixed bugs:
|
||||||
-> Kolab: fixed problem with message about missing password
|
-> Kolab: fixed problem with message about missing password
|
||||||
-> Unix groups: fixed auto GID
|
-> Unix groups: fixed auto GID
|
||||||
|
-> Unix users/groups: fixed silent unlocking of passwords
|
||||||
-> Shadow: account expiration date was incorrect in some time zones
|
-> Shadow: account expiration date was incorrect in some time zones
|
||||||
-> User list: fixed problems when deleting users and translated GIDs are activated (1503367)
|
-> User list: fixed problems when deleting users and translated GIDs are activated (1503367)
|
||||||
|
|
||||||
|
|
|
@ -751,6 +751,21 @@ class posixGroup extends baseModule {
|
||||||
if (sizeof($messages) > 0) return $messages;
|
if (sizeof($messages) > 0) return $messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function loads all needed LDAP attributes.
|
||||||
|
*
|
||||||
|
* @param array $attr list of attributes
|
||||||
|
*/
|
||||||
|
function load_attributes($attr) {
|
||||||
|
parent::load_attributes($attr);
|
||||||
|
// set password options
|
||||||
|
if (!isset($this->attributes['userPassword'][0])) $this->userPassword_nopassword = true;
|
||||||
|
else {
|
||||||
|
if (pwd_is_enabled($this->attributes['userPassword'][0])) $this->userPassword_lock = false;
|
||||||
|
else $this->userPassword_lock = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* This function returns an array with 3 entries:
|
/* This function returns an array with 3 entries:
|
||||||
* array( DN1 ('add' => array($attr), 'remove' => array($attr), 'modify' => array($attr)), DN2 .... )
|
* array( DN1 ('add' => array($attr), 'remove' => array($attr), 'modify' => array($attr)), DN2 .... )
|
||||||
* DN is the DN to change. It may be possible to change several DNs,
|
* DN is the DN to change. It may be possible to change several DNs,
|
||||||
|
|
Loading…
Reference in New Issue