Skip to content

Commit 92016c2

Browse files
committed
unityLDAP use its own getEntry method
1 parent 244bc7e commit 92016c2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

resources/lib/UnityLDAP.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,25 +315,21 @@ public function getAllOrgGroups($UnitySQL, $UnityMailer, $UnityRedis, $UnityWebh
315315

316316
public function getUserEntry($uid)
317317
{
318-
$ldap_entry = new LDAPEntry($this->getConn(), unityLDAP::RDN . "=$uid," . $this->STR_USEROU);
319-
return $ldap_entry;
318+
return $this->getEntry(unityLDAP::RDN . "=$uid," . $this->STR_USEROU);
320319
}
321320

322321
public function getGroupEntry($gid)
323322
{
324-
$ldap_entry = new LDAPEntry($this->getConn(), unityLDAP::RDN . "=$gid," . $this->STR_GROUPOU);
325-
return $ldap_entry;
323+
return $this->getEntry(unityLDAP::RDN . "=$gid," . $this->STR_GROUPOU);
326324
}
327325

328326
public function getPIGroupEntry($gid)
329327
{
330-
$ldap_entry = new LDAPEntry($this->getConn(), unityLDAP::RDN . "=$gid," . $this->STR_PIGROUPOU);
331-
return $ldap_entry;
328+
return $this->getEntry(unityLDAP::RDN . "=$gid," . $this->STR_PIGROUPOU);
332329
}
333330

334331
public function getOrgGroupEntry($gid)
335332
{
336-
$ldap_entry = new LDAPEntry($this->getConn(), unityLDAP::RDN . "=$gid," . $this->STR_ORGGROUPOU);
337-
return $ldap_entry;
333+
return $this->getEntry(unityLDAP::RDN . "=$gid," . $this->STR_ORGGROUPOU);
338334
}
339335
}

0 commit comments

Comments
 (0)