|
@@ 103-106 (lines=4) @@
|
| 100 |
|
|
| 101 |
|
$groupDN = $this->access->groupname2dn($gid); |
| 102 |
|
// just in case |
| 103 |
|
if(!$groupDN || !$userDN) { |
| 104 |
|
$this->access->connection->writeToCache($cacheKey, false); |
| 105 |
|
return false; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
//check primary group first |
| 109 |
|
if($gid === $this->getUserPrimaryGroup($userDN)) { |
|
@@ 109-112 (lines=4) @@
|
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
//check primary group first |
| 109 |
|
if($gid === $this->getUserPrimaryGroup($userDN)) { |
| 110 |
|
$this->access->connection->writeToCache($cacheKey, true); |
| 111 |
|
return true; |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
//usually, LDAP attributes are said to be case insensitive. But there are exceptions of course. |
| 115 |
|
$members = $this->_groupMembers($groupDN); |