We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e6982 commit bed26c9Copy full SHA for bed26c9
workers/update-ldap-cache.php
@@ -33,14 +33,13 @@
33
} else {
34
echo "updating cache...\n";
35
36
- $user_CNs = $LDAP->getUserGroup()->getAttribute("memberuid");
37
- sort($user_CNs);
38
- $REDIS->setCache("sorted_users", "", $user_CNs);
39
-
40
// search entire tree, some users created for admin purposes might not be in the normal OU
41
echo "waiting for LDAP search (users)...\n";
42
$users = $LDAP->search("objectClass=posixAccount", $CONFIG["ldap"]["basedn"]);
43
echo "response received.\n";
+ $user_CNs = $LDAP->getUserGroup()->getAttribute("memberuid");
+ sort($user_CNs);
+ $REDIS->setCache("sorted_users", "", $user_CNs);
44
foreach ($users as $user) {
45
$uid = $user->getAttribute("cn")[0];
46
if (!in_array($uid, $user_CNs)) {
0 commit comments