2014-06-03 14:35:18 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2014 Arthur Schiwon <blizzz@owncloud.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
2014-08-21 19:59:13 +04:00
|
|
|
use OCA\user_ldap\lib\Helper;
|
|
|
|
use OCA\user_ldap\lib\LDAP;
|
|
|
|
use OCA\user_ldap\User_Proxy;
|
2014-12-20 18:09:04 +03:00
|
|
|
use OCA\User_LDAP\Mapping\UserMapping;
|
2014-12-20 19:08:26 +03:00
|
|
|
use OCA\User_LDAP\lib\User\DeletedUsersIndex;
|
|
|
|
|
|
|
|
$dbConnection = \OC::$server->getDatabaseConnection();
|
|
|
|
$userMapping = new UserMapping($dbConnection);
|
|
|
|
$helper = new Helper();
|
|
|
|
$uBackend = new User_Proxy(
|
|
|
|
$helper->getServerConfigurationPrefixes(true),
|
|
|
|
new LDAP()
|
|
|
|
);
|
|
|
|
$deletedUsersIndex = new DeletedUsersIndex(
|
|
|
|
\OC::$server->getConfig(), $dbConnection, $userMapping);
|
2014-08-21 19:59:13 +04:00
|
|
|
|
2014-06-03 21:10:18 +04:00
|
|
|
$application->add(new OCA\user_ldap\Command\ShowConfig());
|
|
|
|
$application->add(new OCA\user_ldap\Command\SetConfig());
|
|
|
|
$application->add(new OCA\user_ldap\Command\TestConfig());
|
2014-09-29 07:17:53 +04:00
|
|
|
$application->add(new OCA\user_ldap\Command\CreateEmptyConfig());
|
2014-09-30 05:23:00 +04:00
|
|
|
$application->add(new OCA\user_ldap\Command\DeleteConfig());
|
2014-11-28 14:08:33 +03:00
|
|
|
$application->add(new OCA\user_ldap\Command\Search());
|
2014-12-20 18:09:04 +03:00
|
|
|
$application->add(new OCA\user_ldap\Command\ShowRemnants($userMapping));
|
2014-08-21 19:59:13 +04:00
|
|
|
$application->add(new OCA\user_ldap\Command\CheckUser(
|
2014-12-20 19:08:26 +03:00
|
|
|
$uBackend, $helper, $deletedUsersIndex, $userMapping));
|