* This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ 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()); $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()); $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 LDAP() ); $application->add(new OCA\user_ldap\Command\CheckUser( $uBackend, $helper, \OC::$server->getConfig() ));