Lines Matching +full:- +full:- +full:group
21 /** @var array List of group DNs and their parent and children */
32 $this->ldap = $ldap;
35 $this->groupHierarchy = $this->getCachedGroupList();
37 $this->groupHierarchy = $this->getGroupList();
42 * Use a file system cached version of the group hierarchy
52 $cachename = getcachename('grouphierarchy', '.pureldap-gch');
56 if ($cachetime && (time() - $cachetime) < $conf['auth_security_timeout']) {
61 $groups = $this->getGroupList();
67 * Load all group information from AD
73 $filter = Filters::equal('objectCategory', 'group');
75 $paging = $this->ldap->paging($search);
79 while ($paging->hasEntries()) {
81 $entries = $paging->getEntries();
87 $dn = (string)$entry->getDn();
89 if ($entry->has('memberOf')) {
90 $parents = $entry->get('memberOf')->getValues();
104 * @param string $group
108 protected function getHierarchy($group, $type, &$data) argument
110 if (empty($this->groupHierarchy[$group][$type])) return;
112 $parents = $this->groupHierarchy[$group][$type];
116 $this->getHierarchy($parent, $type, $data);
121 * Get all parents of a group
123 * @param string $group
126 public function getParents($group) argument
129 $this->getHierarchy($group, 'parents', $parents);
134 * Get all children of a group
136 * @param string $group
139 public function getChildren($group) argument
142 $this->getHierarchy($group, 'children', $children);