summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/appinfo/register_command.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-01-06 23:28:49 +0100
committerArthur Schiwon <blizzz@owncloud.com>2015-01-06 23:28:49 +0100
commit40ecd30fba6d29362c455b1f0eef875ff19cd544 (patch)
treec221a9cec19d42588338c308333fc84ef3d84e91 /apps/user_ldap/appinfo/register_command.php
parent8e488f726c6f6aaaf1b33c6bc53f7ecb417b0d28 (diff)
downloadnextcloud-server-40ecd30fba6d29362c455b1f0eef875ff19cd544.tar.gz
nextcloud-server-40ecd30fba6d29362c455b1f0eef875ff19cd544.zip
inject oc config to User_LDAP
Diffstat (limited to 'apps/user_ldap/appinfo/register_command.php')
-rw-r--r--apps/user_ldap/appinfo/register_command.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/user_ldap/appinfo/register_command.php b/apps/user_ldap/appinfo/register_command.php
index 0e918b82335..6abfd699c90 100644
--- a/apps/user_ldap/appinfo/register_command.php
+++ b/apps/user_ldap/appinfo/register_command.php
@@ -15,12 +15,14 @@ use OCA\User_LDAP\lib\User\DeletedUsersIndex;
$dbConnection = \OC::$server->getDatabaseConnection();
$userMapping = new UserMapping($dbConnection);
$helper = new Helper();
+$ocConfig = \OC::$server->getConfig();
$uBackend = new User_Proxy(
$helper->getServerConfigurationPrefixes(true),
- new LDAP()
+ new LDAP(),
+ $ocConfig
);
$deletedUsersIndex = new DeletedUsersIndex(
- \OC::$server->getConfig(), $dbConnection, $userMapping
+ $ocConfig, $dbConnection, $userMapping
);
$application->add(new OCA\user_ldap\Command\ShowConfig());
@@ -28,7 +30,7 @@ $application->add(new OCA\user_ldap\Command\SetConfig());
$application->add(new OCA\user_ldap\Command\TestConfig());
$application->add(new OCA\user_ldap\Command\CreateEmptyConfig());
$application->add(new OCA\user_ldap\Command\DeleteConfig());
-$application->add(new OCA\user_ldap\Command\Search());
+$application->add(new OCA\user_ldap\Command\Search($ocConfig));
$application->add(new OCA\user_ldap\Command\ShowRemnants($deletedUsersIndex));
$application->add(new OCA\user_ldap\Command\CheckUser(
$uBackend, $helper, $deletedUsersIndex, $userMapping)