apps/user_ldap/lib/Group_LDAP.php 1 location
|
@@ 886-889 (lines=4) @@
|
| 883 |
|
} |
| 884 |
|
|
| 885 |
|
//if group really still exists, we will be able to read its objectclass |
| 886 |
|
if(!is_array($this->access->readAttribute($dn, ''))) { |
| 887 |
|
$this->access->connection->writeToCache('groupExists'.$gid, false); |
| 888 |
|
return false; |
| 889 |
|
} |
| 890 |
|
|
| 891 |
|
$this->access->connection->writeToCache('groupExists'.$gid, true); |
| 892 |
|
return true; |
apps/user_ldap/lib/User_LDAP.php 1 location
|
@@ 258-260 (lines=3) @@
|
| 255 |
|
} |
| 256 |
|
$newDn = $this->access->getUserDnByUuid($uuid); |
| 257 |
|
//check if renamed user is still valid by reapplying the ldap filter |
| 258 |
|
if(!is_array($this->access->readAttribute($newDn, '', $this->access->connection->ldapUserFilter))) { |
| 259 |
|
return false; |
| 260 |
|
} |
| 261 |
|
$this->access->getUserMapper()->setDNbyUUID($newDn, $uuid); |
| 262 |
|
return true; |
| 263 |
|
} catch (\Exception $e) { |