File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -173,13 +173,13 @@ private function IDNumInUse($id)
173
173
return true ;
174
174
}
175
175
}
176
- $ pi_groups = $ this ->pi_groupOU ->getChildrenArray (true );
176
+ $ pi_groups = $ this ->pi_groupOU ->getChildrenArray ([ " gidnumber " ], true );
177
177
foreach ($ pi_groups as $ pi_group ) {
178
178
if ($ pi_group ["gidnumber " ][0 ] == $ id ) {
179
179
return true ;
180
180
}
181
181
}
182
- $ groups = $ this ->groupOU ->getChildrenArray (true );
182
+ $ groups = $ this ->groupOU ->getChildrenArray ([ " gidnumber " ], true );
183
183
foreach ($ groups as $ group ) {
184
184
if ($ group ["gidnumber " ][0 ] == $ id ) {
185
185
return true ;
Original file line number Diff line number Diff line change 56
56
57
57
$ org_group_ou = new LDAPEntry ($ LDAP ->getConn (), $ CONFIG ["ldap " ]["orggroup_ou " ]);
58
58
echo "waiting for LDAP search (org groups)... \n" ;
59
- $ org_groups = $ org_group_ou ->getChildrenArray (true );
59
+ $ org_groups = $ org_group_ou ->getChildrenArray ([ " cn " , " memberuid " ], true );
60
60
echo "response received. \n" ;
61
61
// phpcs:disable
62
62
$ org_group_CNs = array_map (function ($ x ){return $ x ["cn " ][0 ];}, $ org_groups );
70
70
71
71
$ pi_group_ou = new LDAPEntry ($ LDAP ->getConn (), $ CONFIG ["ldap " ]["pigroup_ou " ]);
72
72
echo "waiting for LDAP search (pi groups)... \n" ;
73
- $ pi_groups = $ pi_group_ou ->getChildrenArray (true );
73
+ $ pi_groups = $ pi_group_ou ->getChildrenArray ([ " cn " , " memberuid " ], true );
74
74
echo "response received. \n" ;
75
75
// phpcs:disable
76
76
$ pi_group_CNs = array_map (function ($ x ){return $ x ["cn " ][0 ];}, $ pi_groups );
You can’t perform that action at this time.
0 commit comments