Skip to content

Commit 0e56675

Browse files
committed
rename variable
1 parent 8a428ca commit 0e56675

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

resources/lib/UnityLDAP.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ class UnityLDAP extends ldapConn
2727

2828
// string vars for OUs
2929
private $STR_USEROU;
30-
private $STR_GROUPOU;
30+
private $STR_USERGROUPOU;
3131
private $STR_PIGROUPOU;
3232
private $STR_ORGGROUPOU;
3333
private $STR_ADMINGROUP;
3434

3535
// Instance vars for various ldapEntry objects
3636
private $userOU;
37-
private $groupOU;
37+
private $user_groupOU;
3838
private $pi_groupOU;
3939
private $org_groupOU;
4040
private $adminGroup;
@@ -59,14 +59,14 @@ public function __construct(
5959
parent::__construct($host, $dn, $pass);
6060

6161
$this->STR_USEROU = $user_ou;
62-
$this->STR_GROUPOU = $group_ou;
62+
$this->STR_USERGROUPOU = $group_ou;
6363
$this->STR_PIGROUPOU = $pigroup_ou;
6464
$this->STR_ORGGROUPOU = $orggroup_ou;
6565
$this->STR_ADMINGROUP = $admin_group;
6666

6767
// Get Global Entries
6868
$this->userOU = $this->getEntry($user_ou);
69-
$this->groupOU = $this->getEntry($group_ou);
69+
$this->user_groupOU = $this->getEntry($group_ou);
7070
$this->pi_groupOU = $this->getEntry($pigroup_ou);
7171
$this->org_groupOU = $this->getEntry($orggroup_ou);
7272
$this->adminGroup = $this->getEntry($admin_group);
@@ -85,9 +85,9 @@ public function getUserOU()
8585
return $this->userOU;
8686
}
8787

88-
public function getGroupOU()
88+
public function getUserGroupOU()
8989
{
90-
return $this->groupOU;
90+
return $this->user_groupOU;
9191
}
9292

9393
public function getPIGroupOU()
@@ -186,7 +186,7 @@ private function PIGIDNumInUse($id)
186186

187187
private function GIDNumInUse($id)
188188
{
189-
$groups = $this->groupOU->getChildrenArray(true);
189+
$groups = $this->user_groupOU->getChildrenArray(true);
190190
foreach ($groups as $group) {
191191
if ($group["gidnumber"][0] == $id) {
192192
return true;
@@ -322,10 +322,10 @@ public function getUserEntry($uid)
322322
return $this->getEntry(unityLDAP::RDN . "=$uid," . $this->STR_USEROU);
323323
}
324324

325-
public function getGroupEntry($gid)
325+
public function getUserGroupEntry($gid)
326326
{
327327
$gid = ldap_escape($gid, LDAP_ESCAPE_DN);
328-
return $this->getEntry(unityLDAP::RDN . "=$gid," . $this->STR_GROUPOU);
328+
return $this->getEntry(unityLDAP::RDN . "=$gid," . $this->STR_USERGROUPOU);
329329
}
330330

331331
public function getPIGroupEntry($gid)

resources/lib/UnityUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function getLDAPUser()
152152
*/
153153
public function getLDAPGroup()
154154
{
155-
return $this->LDAP->getGroupEntry($this->uid);
155+
return $this->LDAP->getUserGroupEntry($this->uid);
156156
}
157157

158158
public function exists()

0 commit comments

Comments
 (0)