summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/appinfo/register_command.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-12-20 16:09:04 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-12-20 16:09:04 +0100
commit144d95de7dde29cd85e795cdcd7ac1576639d641 (patch)
tree67de63f5c3c43b49cbb29cffcd6eb855eff68cb1 /apps/user_ldap/appinfo/register_command.php
parent4fa39250e714b3ee5aa16a5f9ce8c77daa44311b (diff)
downloadnextcloud-server-144d95de7dde29cd85e795cdcd7ac1576639d641.tar.gz
nextcloud-server-144d95de7dde29cd85e795cdcd7ac1576639d641.zip
basic adjustments for OC 8. I.e. no visible issues, LDAP tests pass.
Diffstat (limited to 'apps/user_ldap/appinfo/register_command.php')
-rw-r--r--apps/user_ldap/appinfo/register_command.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/user_ldap/appinfo/register_command.php b/apps/user_ldap/appinfo/register_command.php
index 55a187d9654..314c73e6c4a 100644
--- a/apps/user_ldap/appinfo/register_command.php
+++ b/apps/user_ldap/appinfo/register_command.php
@@ -9,6 +9,7 @@
use OCA\user_ldap\lib\Helper;
use OCA\user_ldap\lib\LDAP;
use OCA\user_ldap\User_Proxy;
+use OCA\User_LDAP\Mapping\UserMapping;
$application->add(new OCA\user_ldap\Command\ShowConfig());
$application->add(new OCA\user_ldap\Command\SetConfig());
@@ -16,11 +17,12 @@ $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\ShowRemnants());
-$helper = new OCA\user_ldap\lib\Helper();
-$uBackend = new OCA\user_ldap\User_Proxy(
+$userMapping = new UserMapping(\OC::$server->getDatabaseConnection());
+$application->add(new OCA\user_ldap\Command\ShowRemnants($userMapping));
+$helper = new Helper();
+$uBackend = new User_Proxy(
$helper->getServerConfigurationPrefixes(true),
- new OCA\user_ldap\lib\LDAP()
+ new LDAP()
);
$application->add(new OCA\user_ldap\Command\CheckUser(
$uBackend, $helper, \OC::$server->getConfig()