@@ -27,14 +27,14 @@ class UnityLDAP extends ldapConn
27
27
28
28
// string vars for OUs
29
29
private $ STR_USEROU ;
30
- private $ STR_GROUPOU ;
30
+ // private $STR_GROUPOU;
31
31
private $ STR_PIGROUPOU ;
32
32
private $ STR_ORGGROUPOU ;
33
33
private $ STR_ADMINGROUP ;
34
34
35
35
// Instance vars for various ldapEntry objects
36
36
private $ userOU ;
37
- private $ groupOU ;
37
+ // private $groupOU;
38
38
private $ pi_groupOU ;
39
39
private $ org_groupOU ;
40
40
private $ adminGroup ;
@@ -49,7 +49,7 @@ public function __construct(
49
49
$ pass ,
50
50
$ custom_user_mappings ,
51
51
$ user_ou ,
52
- $ group_ou ,
52
+ // $group_ou,
53
53
$ pigroup_ou ,
54
54
$ orggroup_ou ,
55
55
$ admin_group ,
@@ -59,14 +59,14 @@ public function __construct(
59
59
parent ::__construct ($ host , $ dn , $ pass );
60
60
61
61
$ this ->STR_USEROU = $ user_ou ;
62
- $ this ->STR_GROUPOU = $ group_ou ;
62
+ // $this->STR_GROUPOU = $group_ou;
63
63
$ this ->STR_PIGROUPOU = $ pigroup_ou ;
64
64
$ this ->STR_ORGGROUPOU = $ orggroup_ou ;
65
65
$ this ->STR_ADMINGROUP = $ admin_group ;
66
66
67
67
// Get Global Entries
68
68
$ this ->userOU = $ this ->getEntry ($ user_ou );
69
- $ this ->groupOU = $ this ->getEntry ($ group_ou );
69
+ // $this->groupOU = $this->getEntry($group_ou);
70
70
$ this ->pi_groupOU = $ this ->getEntry ($ pigroup_ou );
71
71
$ this ->org_groupOU = $ this ->getEntry ($ orggroup_ou );
72
72
$ this ->adminGroup = $ this ->getEntry ($ admin_group );
@@ -85,10 +85,10 @@ public function getUserOU()
85
85
return $ this ->userOU ;
86
86
}
87
87
88
- public function getGroupOU ()
89
- {
90
- return $ this ->groupOU ;
91
- }
88
+ // public function getGroupOU()
89
+ // {
90
+ // return $this->groupOU;
91
+ // }
92
92
93
93
public function getPIGroupOU ()
94
94
{
@@ -186,13 +186,12 @@ private function PIGIDNumInUse($id)
186
186
187
187
private function GIDNumInUse ($ id )
188
188
{
189
- $ groups = $ this ->groupOU ->getChildrenArray (true );
190
- foreach ($ groups as $ group ) {
191
- if ($ group ["gidnumber " ][0 ] == $ id ) {
192
- return true ;
193
- }
194
- }
195
-
189
+ // $groups = $this->groupOU->getChildrenArray(true);
190
+ // foreach ($groups as $group) {
191
+ // if ($group["gidnumber"][0] == $id) {
192
+ // return true;
193
+ // }
194
+ // }
196
195
return false ;
197
196
}
198
197
0 commit comments