diff --git a/apps/user_ldap/appinfo/app.php b/apps/user_ldap/appinfo/app.php index 430df23018..5e716f1860 100644 --- a/apps/user_ldap/appinfo/app.php +++ b/apps/user_ldap/appinfo/app.php @@ -46,10 +46,10 @@ if(count($configPrefixes) === 1) { $ldapAccess->setUserMapper(new OCA\User_LDAP\Mapping\UserMapping($dbc)); $ldapAccess->setGroupMapper(new OCA\User_LDAP\Mapping\GroupMapping($dbc)); - $userBackend = new OCA\user_ldap\USER_LDAP($ldapAccess, $ocConfig); + $userBackend = new OCA\User_LDAP\User_LDAP($ldapAccess, $ocConfig); $groupBackend = new \OCA\User_LDAP\Group_LDAP($ldapAccess); } else if(count($configPrefixes) > 1) { - $userBackend = new OCA\user_ldap\User_Proxy( + $userBackend = new OCA\User_LDAP\User_Proxy( $configPrefixes, $ldapWrapper, $ocConfig ); $groupBackend = new OCA\User_LDAP\Group_Proxy($configPrefixes, $ldapWrapper); diff --git a/apps/user_ldap/appinfo/register_command.php b/apps/user_ldap/appinfo/register_command.php index 637669dbaa..a2dd3a381d 100644 --- a/apps/user_ldap/appinfo/register_command.php +++ b/apps/user_ldap/appinfo/register_command.php @@ -23,7 +23,7 @@ use OCA\user_ldap\lib\Helper; use OCA\user_ldap\lib\LDAP; -use OCA\user_ldap\User_Proxy; +use OCA\User_LDAP\User_Proxy; use OCA\User_LDAP\Mapping\UserMapping; use OCA\User_LDAP\lib\User\DeletedUsersIndex; diff --git a/apps/user_ldap/lib/Command/CheckUser.php b/apps/user_ldap/lib/Command/CheckUser.php index b984c9fa5c..c8c46bbdff 100644 --- a/apps/user_ldap/lib/Command/CheckUser.php +++ b/apps/user_ldap/lib/Command/CheckUser.php @@ -31,10 +31,10 @@ use Symfony\Component\Console\Output\OutputInterface; use OCA\User_LDAP\lib\User\DeletedUsersIndex; use OCA\User_LDAP\Mapping\UserMapping; use OCA\user_ldap\lib\Helper as LDAPHelper; -use OCA\user_ldap\User_Proxy; +use OCA\User_LDAP\User_Proxy; class CheckUser extends Command { - /** @var \OCA\user_ldap\User_Proxy */ + /** @var \OCA\User_LDAP\User_Proxy */ protected $backend; /** @var \OCA\User_LDAP\lib\Helper */ diff --git a/apps/user_ldap/lib/Command/Search.php b/apps/user_ldap/lib/Command/Search.php index 84d4a2d192..e5df49016d 100644 --- a/apps/user_ldap/lib/Command/Search.php +++ b/apps/user_ldap/lib/Command/Search.php @@ -28,7 +28,7 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -use OCA\user_ldap\User_Proxy; +use OCA\User_LDAP\User_Proxy; use OCA\User_LDAP\Group_Proxy; use OCA\user_ldap\lib\Helper; use OCA\user_ldap\lib\LDAP; diff --git a/apps/user_ldap/lib/Jobs/CleanUp.php b/apps/user_ldap/lib/Jobs/CleanUp.php index c9f5f2021e..d3af1cf12f 100644 --- a/apps/user_ldap/lib/Jobs/CleanUp.php +++ b/apps/user_ldap/lib/Jobs/CleanUp.php @@ -24,7 +24,7 @@ namespace OCA\User_LDAP\Jobs; use \OC\BackgroundJob\TimedJob; use \OCA\user_ldap\User_LDAP; -use \OCA\user_ldap\User_Proxy; +use \OCA\User_LDAP\User_Proxy; use \OCA\user_ldap\lib\Helper; use \OCA\user_ldap\lib\LDAP; use \OCA\user_ldap\lib\user\DeletedUsersIndex; diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/lib/User_LDAP.php similarity index 99% rename from apps/user_ldap/user_ldap.php rename to apps/user_ldap/lib/User_LDAP.php index d6b345faf4..29ea849658 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -29,7 +29,7 @@ * */ -namespace OCA\user_ldap; +namespace OCA\User_LDAP; use OC\User\NoUserException; use OCA\user_ldap\lib\BackendUtility; @@ -38,7 +38,7 @@ use OCA\user_ldap\lib\user\OfflineUser; use OCA\User_LDAP\lib\User\User; use OCP\IConfig; -class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserInterface { +class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserInterface { /** @var string[] $homesToKill */ protected $homesToKill = array(); diff --git a/apps/user_ldap/user_proxy.php b/apps/user_ldap/lib/User_Proxy.php similarity index 99% rename from apps/user_ldap/user_proxy.php rename to apps/user_ldap/lib/User_Proxy.php index 9ea0b6dd23..73883a3d47 100644 --- a/apps/user_ldap/user_proxy.php +++ b/apps/user_ldap/lib/User_Proxy.php @@ -24,7 +24,7 @@ * */ -namespace OCA\user_ldap; +namespace OCA\User_LDAP; use OCA\user_ldap\lib\ILDAPWrapper; use OCA\User_LDAP\lib\User\User; diff --git a/apps/user_ldap/lib/helper.php b/apps/user_ldap/lib/helper.php index bfff6baf0d..c0900f54a6 100644 --- a/apps/user_ldap/lib/helper.php +++ b/apps/user_ldap/lib/helper.php @@ -27,7 +27,7 @@ namespace OCA\user_ldap\lib; -use OCA\user_ldap\User_Proxy; +use OCA\User_LDAP\User_Proxy; class Helper { diff --git a/apps/user_ldap/tests/user_ldap.php b/apps/user_ldap/tests/User_LDAPTest.php similarity index 99% rename from apps/user_ldap/tests/user_ldap.php rename to apps/user_ldap/tests/User_LDAPTest.php index 0ae18a2aa9..e9e277ee73 100644 --- a/apps/user_ldap/tests/user_ldap.php +++ b/apps/user_ldap/tests/User_LDAPTest.php @@ -25,9 +25,9 @@ * */ -namespace OCA\user_ldap\tests; +namespace OCA\User_LDAP\Tests; -use \OCA\user_ldap\USER_LDAP as UserLDAP; +use OCA\User_LDAP\User_LDAP as UserLDAP; use \OCA\user_ldap\lib\Access; use \OCA\user_ldap\lib\Connection; use \OCA\user_ldap\lib\ILDAPWrapper; @@ -37,9 +37,9 @@ use \OCA\user_ldap\lib\ILDAPWrapper; * * @group DB * - * @package OCA\user_ldap\tests + * @package OCA\User_LDAP\Tests */ -class Test_User_Ldap_Direct extends \Test\TestCase { +class User_LDAPTest extends \Test\TestCase { protected $backend; protected $access; protected $configMock; diff --git a/apps/user_ldap/tests/integration/lib/integrationtestbackupserver.php b/apps/user_ldap/tests/integration/lib/integrationtestbackupserver.php index 4faf173af1..9eabb5f2e7 100644 --- a/apps/user_ldap/tests/integration/lib/integrationtestbackupserver.php +++ b/apps/user_ldap/tests/integration/lib/integrationtestbackupserver.php @@ -24,7 +24,7 @@ namespace OCA\user_ldap\tests\integration\lib; use OCA\user_ldap\lib\user\Manager as LDAPUserManager; use OCA\user_ldap\tests\integration\AbstractIntegrationTest; use OCA\User_LDAP\Mapping\UserMapping; -use OCA\user_ldap\USER_LDAP; +use OCA\User_LDAP\User_LDAP; require_once __DIR__ . '/../../../../../lib/base.php'; @@ -32,7 +32,7 @@ class IntegrationBackupServer extends AbstractIntegrationTest { /** @var UserMapping */ protected $mapping; - /** @var USER_LDAP */ + /** @var User_LDAP */ protected $backend; /** diff --git a/apps/user_ldap/tests/integration/lib/integrationtestconnect.php b/apps/user_ldap/tests/integration/lib/integrationtestconnect.php index ad4d0a3da7..b333552955 100644 --- a/apps/user_ldap/tests/integration/lib/integrationtestconnect.php +++ b/apps/user_ldap/tests/integration/lib/integrationtestconnect.php @@ -24,7 +24,7 @@ namespace OCA\user_ldap\tests\integration\lib; use OCA\user_ldap\lib\user\Manager as LDAPUserManager; use OCA\user_ldap\tests\integration\AbstractIntegrationTest; use OCA\User_LDAP\Mapping\UserMapping; -use OCA\user_ldap\USER_LDAP; +use OCA\User_LDAP\User_LDAP; require_once __DIR__ . '/../../../../../lib/base.php'; @@ -32,7 +32,7 @@ class IntegrationConnect extends AbstractIntegrationTest { /** @var UserMapping */ protected $mapping; - /** @var USER_LDAP */ + /** @var User_LDAP */ protected $backend; /** @var string */ diff --git a/apps/user_ldap/tests/integration/lib/integrationtestcountusersbyloginname.php b/apps/user_ldap/tests/integration/lib/integrationtestcountusersbyloginname.php index 861638e25b..83ed7e1b17 100644 --- a/apps/user_ldap/tests/integration/lib/integrationtestcountusersbyloginname.php +++ b/apps/user_ldap/tests/integration/lib/integrationtestcountusersbyloginname.php @@ -24,7 +24,7 @@ namespace OCA\user_ldap\tests\integration\lib; use OCA\user_ldap\lib\user\Manager as LDAPUserManager; use OCA\user_ldap\tests\integration\AbstractIntegrationTest; use OCA\User_LDAP\Mapping\UserMapping; -use OCA\user_ldap\USER_LDAP; +use OCA\User_LDAP\User_LDAP; require_once __DIR__ . '/../../../../../lib/base.php'; diff --git a/apps/user_ldap/tests/integration/lib/integrationtestfetchusersbyloginname.php b/apps/user_ldap/tests/integration/lib/integrationtestfetchusersbyloginname.php index fb2cb45e9e..d7b7363b8a 100644 --- a/apps/user_ldap/tests/integration/lib/integrationtestfetchusersbyloginname.php +++ b/apps/user_ldap/tests/integration/lib/integrationtestfetchusersbyloginname.php @@ -24,7 +24,7 @@ namespace OCA\user_ldap\tests\integration\lib; use OCA\user_ldap\lib\user\Manager as LDAPUserManager; use OCA\user_ldap\tests\integration\AbstractIntegrationTest; use OCA\User_LDAP\Mapping\UserMapping; -use OCA\user_ldap\USER_LDAP; +use OCA\User_LDAP\User_LDAP; require_once __DIR__ . '/../../../../../lib/base.php'; @@ -32,7 +32,7 @@ class IntegrationTestUserHome extends AbstractIntegrationTest { /** @var UserMapping */ protected $mapping; - /** @var USER_LDAP */ + /** @var User_LDAP */ protected $backend; /** @@ -46,7 +46,7 @@ class IntegrationTestUserHome extends AbstractIntegrationTest { $this->mapping = new UserMapping(\OC::$server->getDatabaseConnection()); $this->mapping->clear(); $this->access->setUserMapper($this->mapping); - $this->backend = new \OCA\user_ldap\USER_LDAP($this->access, \OC::$server->getConfig()); + $this->backend = new \OCA\User_LDAP\User_LDAP($this->access, \OC::$server->getConfig()); } /** diff --git a/apps/user_ldap/tests/integration/lib/integrationtestpaging.php b/apps/user_ldap/tests/integration/lib/integrationtestpaging.php index 94f7d7fd0f..2f7cc6a55a 100644 --- a/apps/user_ldap/tests/integration/lib/integrationtestpaging.php +++ b/apps/user_ldap/tests/integration/lib/integrationtestpaging.php @@ -24,7 +24,7 @@ namespace OCA\user_ldap\tests\integration\lib; use OCA\user_ldap\lib\user\Manager as LDAPUserManager; use OCA\user_ldap\tests\integration\AbstractIntegrationTest; use OCA\User_LDAP\Mapping\UserMapping; -use OCA\user_ldap\USER_LDAP; +use OCA\User_LDAP\User_LDAP; require_once __DIR__ . '/../../../../../lib/base.php'; @@ -32,7 +32,7 @@ class IntegrationTestPaging extends AbstractIntegrationTest { /** @var UserMapping */ protected $mapping; - /** @var USER_LDAP */ + /** @var User_LDAP */ protected $backend; /** @@ -43,7 +43,7 @@ class IntegrationTestPaging extends AbstractIntegrationTest { require(__DIR__ . '/../setup-scripts/createExplicitUsers.php'); parent::init(); - $this->backend = new \OCA\user_ldap\USER_LDAP($this->access, \OC::$server->getConfig()); + $this->backend = new \OCA\User_LDAP\User_LDAP($this->access, \OC::$server->getConfig()); } /** diff --git a/apps/user_ldap/tests/integration/lib/integrationtestuserhome.php b/apps/user_ldap/tests/integration/lib/integrationtestuserhome.php index 8d36e1f2df..3d455608bf 100644 --- a/apps/user_ldap/tests/integration/lib/integrationtestuserhome.php +++ b/apps/user_ldap/tests/integration/lib/integrationtestuserhome.php @@ -24,7 +24,7 @@ namespace OCA\user_ldap\tests\integration\lib; use OCA\user_ldap\lib\user\Manager as LDAPUserManager; use OCA\user_ldap\tests\integration\AbstractIntegrationTest; use OCA\User_LDAP\Mapping\UserMapping; -use OCA\user_ldap\USER_LDAP; +use OCA\User_LDAP\User_LDAP; require_once __DIR__ . '/../../../../../lib/base.php'; @@ -32,7 +32,7 @@ class IntegrationTestUserHome extends AbstractIntegrationTest { /** @var UserMapping */ protected $mapping; - /** @var USER_LDAP */ + /** @var User_LDAP */ protected $backend; /** @@ -46,7 +46,7 @@ class IntegrationTestUserHome extends AbstractIntegrationTest { $this->mapping = new UserMapping(\OC::$server->getDatabaseConnection()); $this->mapping->clear(); $this->access->setUserMapper($this->mapping); - $this->backend = new \OCA\user_ldap\USER_LDAP($this->access, \OC::$server->getConfig()); + $this->backend = new \OCA\User_LDAP\User_LDAP($this->access, \OC::$server->getConfig()); } /** diff --git a/apps/user_ldap/tests/integration/lib/user/IntegrationTestUserAvatar.php b/apps/user_ldap/tests/integration/lib/user/IntegrationTestUserAvatar.php index fd53838df1..4b220ff036 100644 --- a/apps/user_ldap/tests/integration/lib/user/IntegrationTestUserAvatar.php +++ b/apps/user_ldap/tests/integration/lib/user/IntegrationTestUserAvatar.php @@ -40,7 +40,7 @@ class IntegrationTestUserAvatar extends AbstractIntegrationTest { $this->mapping = new UserMapping(\OC::$server->getDatabaseConnection()); $this->mapping->clear(); $this->access->setUserMapper($this->mapping); - $userBackend = new OCA\user_ldap\USER_LDAP($this->access, \OC::$server->getConfig()); + $userBackend = new OCA\User_LDAP\User_LDAP($this->access, \OC::$server->getConfig()); \OC_User::useBackend($userBackend); } diff --git a/apps/user_ldap/tests/integration/lib/user/IntegrationTestUserDisplayName.php b/apps/user_ldap/tests/integration/lib/user/IntegrationTestUserDisplayName.php index f82afe9009..6f021e61f6 100644 --- a/apps/user_ldap/tests/integration/lib/user/IntegrationTestUserDisplayName.php +++ b/apps/user_ldap/tests/integration/lib/user/IntegrationTestUserDisplayName.php @@ -38,7 +38,7 @@ class IntegrationTestUserDisplayName extends AbstractIntegrationTest { $this->mapping = new UserMapping(\OC::$server->getDatabaseConnection()); $this->mapping->clear(); $this->access->setUserMapper($this->mapping); - $userBackend = new OCA\user_ldap\USER_LDAP($this->access, \OC::$server->getConfig()); + $userBackend = new OCA\User_LDAP\User_LDAP($this->access, \OC::$server->getConfig()); \OC_User::useBackend($userBackend); } diff --git a/apps/user_ldap/tests/jobs/cleanup.php b/apps/user_ldap/tests/jobs/cleanup.php index 4c6893b19c..8a577f3723 100644 --- a/apps/user_ldap/tests/jobs/cleanup.php +++ b/apps/user_ldap/tests/jobs/cleanup.php @@ -26,7 +26,7 @@ class Test_CleanUp extends \PHPUnit_Framework_TestCase { public function getMocks() { $mocks = array(); $mocks['userBackend'] = - $this->getMockBuilder('\OCA\user_ldap\User_Proxy') + $this->getMockBuilder('\OCA\User_LDAP\User_Proxy') ->disableOriginalConstructor() ->getMock(); $mocks['deletedUsersIndex'] = diff --git a/apps/user_ldap/tests/wizard.php b/apps/user_ldap/tests/wizard.php index 33fb2712e2..c247718c2a 100644 --- a/apps/user_ldap/tests/wizard.php +++ b/apps/user_ldap/tests/wizard.php @@ -27,7 +27,7 @@ namespace OCA\user_ldap\tests; use \OCA\user_ldap\lib\Wizard; -// use \OCA\user_ldap\USER_LDAP as UserLDAP; +// use \OCA\user_ldap\User_LDAP as UserLDAP; // use \OCA\user_ldap\lib\Access; // use \OCA\user_ldap\lib\Configuration; // use \OCA\user_ldap\lib\ILDAPWrapper;