File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 " ]);
You can’t perform that action at this time.
0 commit comments