Skip to content

Commit ad41329

Browse files
committed
fixup! adjust backport to stable20
1 parent 928bec7 commit ad41329

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

apps/user_ldap/appinfo/register_command.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525
*
2626
*/
2727

28+
use OCA\User_LDAP\Command\UpdateUUID;
29+
use OCA\User_LDAP\Group_Proxy;
2830
use OCA\User_LDAP\Helper;
2931
use OCA\User_LDAP\LDAP;
32+
use OCA\User_LDAP\Mapping\GroupMapping;
3033
use OCA\User_LDAP\User_Proxy;
3134
use OCA\User_LDAP\Mapping\UserMapping;
3235
use OCA\User_LDAP\User\DeletedUsersIndex;
@@ -35,19 +38,23 @@
3538

3639
$dbConnection = \OC::$server->getDatabaseConnection();
3740
$userMapping = new UserMapping($dbConnection);
41+
$groupMapping = \OC::$server->get(GroupMapping::class);
3842
$helper = new Helper(\OC::$server->getConfig());
3943
$ocConfig = \OC::$server->getConfig();
44+
$activeConfigurationPrefixes = $helper->getServerConfigurationPrefixes(true);
4045
$uBackend = new User_Proxy(
41-
$helper->getServerConfigurationPrefixes(true),
46+
$activeConfigurationPrefixes,
4247
new LDAP(),
4348
$ocConfig,
4449
\OC::$server->getNotificationManager(),
4550
\OC::$server->getUserSession(),
4651
\OC::$server->query(UserPluginManager::class)
4752
);
53+
$groupBackend = new Group_Proxy($activeConfigurationPrefixes, new LDAP(), \OC::$server->get(\OCA\User_LDAP\GroupPluginManager::class));
4854
$deletedUsersIndex = new DeletedUsersIndex(
4955
$ocConfig, $dbConnection, $userMapping
5056
);
57+
$logger = \OC::$server->get(\Psr\Log\LoggerInterface::class);
5158

5259
$application->add(new OCA\User_LDAP\Command\ShowConfig($helper));
5360
$application->add(new OCA\User_LDAP\Command\SetConfig());
@@ -66,3 +73,4 @@
6673
$application->add(new OCA\User_LDAP\Command\CheckUser(
6774
$uBackend, $helper, $deletedUsersIndex, $userMapping)
6875
);
76+
$application->add(new UpdateUUID($userMapping, $groupMapping, $uBackend, $groupBackend, $logger));

0 commit comments

Comments
 (0)