Open simonLeary42 opened 1 day ago
The issue was GIDNumInUse
was getting called for every user and not caching the result. Suggested fix:
diff --git a/resources/lib/UnityLDAP.php b/resources/lib/UnityLDAP.php
index b5a5d90..8bc2af8 100644
--- a/resources/lib/UnityLDAP.php
+++ b/resources/lib/UnityLDAP.php
@@ -192,7 +192,11 @@ class UnityLDAP extends ldapConn
private function GIDNumInUse($id)
{
- $users = $this->groupOU->getChildrenArray(true);
+ static $users = null;
+ # Only do this lookup once
+ if ($users === null) {
+ $users = $this->groupOU->getChildrenArray(true);
+ }
foreach ($users as $user) {
if ($user["gidnumber"][0] == $id) {
return true;
accepting user into PI group causes timeout error / blank page
this is happening for
pi_jlb_umass_edu
for userbroder49@msu.edu