Skip to content

Commit 25572b8

Browse files
committed
getPIOwnerFromEmail -> getUidFromEmail
1 parent 0d1db04 commit 25572b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/lib/UnityGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ public static function GID2OwnerUID(string $gid): string
481481
public static function mailToPIGID($email)
482482
{
483483
global $LDAP;
484-
$entry = $LDAP->getPIOwnerFromEmail($email);
484+
$entry = $LDAP->getUidFromEmail($email);
485485
if ($entry !== null) {
486486
$ownerUid = $entry->getAttribute("cn")[0];
487487
return self::PI_PREFIX . $ownerUid;

resources/lib/UnityLDAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function getOrgGroupEntry(string $gid): LDAPEntry
429429
return $this->getEntry(UnityLDAP::RDN . "=$gid," . CONFIG["ldap"]["orggroup_ou"]);
430430
}
431431

432-
public function getPIOwnerFromEmail($email)
432+
public function getUidFromEmail($email)
433433
{
434434
$email = ldap_escape($email, "", LDAP_ESCAPE_FILTER);
435435
$cn = $this->search("mail=$email", CONFIG["ldap"]["user_ou"], ["cn"]);

0 commit comments

Comments
 (0)