apps/user_ldap/group_ldap.php 1 location
|
@@ 885-888 (lines=4) @@
|
| 882 |
|
} |
| 883 |
|
|
| 884 |
|
//if group really still exists, we will be able to read its objectclass |
| 885 |
|
if(!is_array($this->access->readAttribute($dn, ''))) { |
| 886 |
|
$this->access->connection->writeToCache('groupExists'.$gid, false); |
| 887 |
|
return false; |
| 888 |
|
} |
| 889 |
|
|
| 890 |
|
$this->access->connection->writeToCache('groupExists'.$gid, true); |
| 891 |
|
return true; |
apps/user_ldap/user_ldap.php 1 location
|
@@ 232-234 (lines=3) @@
|
| 229 |
|
} |
| 230 |
|
$newDn = $this->access->getUserDnByUuid($uuid); |
| 231 |
|
//check if renamed user is still valid by reapplying the ldap filter |
| 232 |
|
if(!is_array($this->access->readAttribute($newDn, '', $this->access->connection->ldapUserFilter))) { |
| 233 |
|
return false; |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
$this->access->getUserMapper()->setDNbyUUID($newDn, $uuid); |
| 237 |
|
return true; |