@@ -32,25 +32,25 @@ |
||
| 32 | 32 | use OCP\Migration\SimpleMigrationStep; |
| 33 | 33 | |
| 34 | 34 | class Version1130Date20220110154719 extends SimpleMigrationStep { |
| 35 | - public function getName() { |
|
| 36 | - return 'Drop ldap_group_mapping_backup'; |
|
| 37 | - } |
|
| 38 | - |
|
| 39 | - /** |
|
| 40 | - * @param IOutput $output |
|
| 41 | - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 42 | - * @param array $options |
|
| 43 | - * @return null|ISchemaWrapper |
|
| 44 | - */ |
|
| 45 | - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 46 | - /** @var ISchemaWrapper $schema */ |
|
| 47 | - $schema = $schemaClosure(); |
|
| 48 | - |
|
| 49 | - if ($schema->hasTable('ldap_group_mapping_backup')) { |
|
| 50 | - $schema->dropTable('ldap_group_mapping_backup'); |
|
| 51 | - return $schema; |
|
| 52 | - } |
|
| 53 | - |
|
| 54 | - return null; |
|
| 55 | - } |
|
| 35 | + public function getName() { |
|
| 36 | + return 'Drop ldap_group_mapping_backup'; |
|
| 37 | + } |
|
| 38 | + |
|
| 39 | + /** |
|
| 40 | + * @param IOutput $output |
|
| 41 | + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 42 | + * @param array $options |
|
| 43 | + * @return null|ISchemaWrapper |
|
| 44 | + */ |
|
| 45 | + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 46 | + /** @var ISchemaWrapper $schema */ |
|
| 47 | + $schema = $schemaClosure(); |
|
| 48 | + |
|
| 49 | + if ($schema->hasTable('ldap_group_mapping_backup')) { |
|
| 50 | + $schema->dropTable('ldap_group_mapping_backup'); |
|
| 51 | + return $schema; |
|
| 52 | + } |
|
| 53 | + |
|
| 54 | + return null; |
|
| 55 | + } |
|
| 56 | 56 | } |
@@ -31,47 +31,47 @@ |
||
| 31 | 31 | use OCP\Migration\IOutput; |
| 32 | 32 | |
| 33 | 33 | class Version1130Date20220110154717 extends GroupMappingMigration { |
| 34 | - public function getName() { |
|
| 35 | - return 'Copy ldap_group_mapping data to backup table if needed'; |
|
| 36 | - } |
|
| 34 | + public function getName() { |
|
| 35 | + return 'Copy ldap_group_mapping data to backup table if needed'; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @param IOutput $output |
|
| 40 | - * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 41 | - * @param array $options |
|
| 42 | - * @since 13.0.0 |
|
| 43 | - */ |
|
| 44 | - public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) { |
|
| 45 | - /** @var ISchemaWrapper $schema */ |
|
| 46 | - $schema = $schemaClosure(); |
|
| 38 | + /** |
|
| 39 | + * @param IOutput $output |
|
| 40 | + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 41 | + * @param array $options |
|
| 42 | + * @since 13.0.0 |
|
| 43 | + */ |
|
| 44 | + public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) { |
|
| 45 | + /** @var ISchemaWrapper $schema */ |
|
| 46 | + $schema = $schemaClosure(); |
|
| 47 | 47 | |
| 48 | - if (!$schema->hasTable('ldap_group_mapping_backup')) { |
|
| 49 | - // Backup table does not exist |
|
| 50 | - return; |
|
| 51 | - } |
|
| 48 | + if (!$schema->hasTable('ldap_group_mapping_backup')) { |
|
| 49 | + // Backup table does not exist |
|
| 50 | + return; |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | - $output->startProgress(); |
|
| 54 | - $this->copyGroupMappingData('ldap_group_mapping', 'ldap_group_mapping_backup'); |
|
| 55 | - $output->finishProgress(); |
|
| 56 | - } |
|
| 53 | + $output->startProgress(); |
|
| 54 | + $this->copyGroupMappingData('ldap_group_mapping', 'ldap_group_mapping_backup'); |
|
| 55 | + $output->finishProgress(); |
|
| 56 | + } |
|
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * @param IOutput $output |
|
| 60 | - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 61 | - * @param array $options |
|
| 62 | - * @return null|ISchemaWrapper |
|
| 63 | - */ |
|
| 64 | - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 65 | - /** @var ISchemaWrapper $schema */ |
|
| 66 | - $schema = $schemaClosure(); |
|
| 58 | + /** |
|
| 59 | + * @param IOutput $output |
|
| 60 | + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 61 | + * @param array $options |
|
| 62 | + * @return null|ISchemaWrapper |
|
| 63 | + */ |
|
| 64 | + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 65 | + /** @var ISchemaWrapper $schema */ |
|
| 66 | + $schema = $schemaClosure(); |
|
| 67 | 67 | |
| 68 | - if (!$schema->hasTable('ldap_group_mapping_backup')) { |
|
| 69 | - // Backup table does not exist |
|
| 70 | - return null; |
|
| 71 | - } |
|
| 68 | + if (!$schema->hasTable('ldap_group_mapping_backup')) { |
|
| 69 | + // Backup table does not exist |
|
| 70 | + return null; |
|
| 71 | + } |
|
| 72 | 72 | |
| 73 | - $schema->dropTable('ldap_group_mapping'); |
|
| 73 | + $schema->dropTable('ldap_group_mapping'); |
|
| 74 | 74 | |
| 75 | - return $schema; |
|
| 76 | - } |
|
| 75 | + return $schema; |
|
| 76 | + } |
|
| 77 | 77 | } |
@@ -31,39 +31,39 @@ |
||
| 31 | 31 | |
| 32 | 32 | abstract class GroupMappingMigration extends SimpleMigrationStep { |
| 33 | 33 | |
| 34 | - /** @var IDBConnection */ |
|
| 35 | - private $dbc; |
|
| 34 | + /** @var IDBConnection */ |
|
| 35 | + private $dbc; |
|
| 36 | 36 | |
| 37 | - public function __construct(IDBConnection $dbc) { |
|
| 38 | - $this->dbc = $dbc; |
|
| 39 | - } |
|
| 37 | + public function __construct(IDBConnection $dbc) { |
|
| 38 | + $this->dbc = $dbc; |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - protected function copyGroupMappingData(string $sourceTable, string $destinationTable): void { |
|
| 42 | - $insert = $this->dbc->getQueryBuilder(); |
|
| 43 | - $insert->insert($destinationTable) |
|
| 44 | - ->values([ |
|
| 45 | - 'ldap_dn' => $insert->createParameter('ldap_dn'), |
|
| 46 | - 'owncloud_name' => $insert->createParameter('owncloud_name'), |
|
| 47 | - 'directory_uuid' => $insert->createParameter('directory_uuid'), |
|
| 48 | - 'ldap_dn_hash' => $insert->createParameter('ldap_dn_hash'), |
|
| 49 | - ]); |
|
| 41 | + protected function copyGroupMappingData(string $sourceTable, string $destinationTable): void { |
|
| 42 | + $insert = $this->dbc->getQueryBuilder(); |
|
| 43 | + $insert->insert($destinationTable) |
|
| 44 | + ->values([ |
|
| 45 | + 'ldap_dn' => $insert->createParameter('ldap_dn'), |
|
| 46 | + 'owncloud_name' => $insert->createParameter('owncloud_name'), |
|
| 47 | + 'directory_uuid' => $insert->createParameter('directory_uuid'), |
|
| 48 | + 'ldap_dn_hash' => $insert->createParameter('ldap_dn_hash'), |
|
| 49 | + ]); |
|
| 50 | 50 | |
| 51 | - $query = $this->dbc->getQueryBuilder(); |
|
| 52 | - $query->select('*') |
|
| 53 | - ->from($sourceTable); |
|
| 51 | + $query = $this->dbc->getQueryBuilder(); |
|
| 52 | + $query->select('*') |
|
| 53 | + ->from($sourceTable); |
|
| 54 | 54 | |
| 55 | 55 | |
| 56 | - $result = $query->executeQuery(); |
|
| 57 | - while ($row = $result->fetch()) { |
|
| 58 | - $insert |
|
| 59 | - ->setParameter('ldap_dn', $row['ldap_dn']) |
|
| 60 | - ->setParameter('owncloud_name', $row['owncloud_name']) |
|
| 61 | - ->setParameter('directory_uuid', $row['directory_uuid']) |
|
| 62 | - ->setParameter('ldap_dn_hash', $row['ldap_dn_hash']) |
|
| 63 | - ; |
|
| 56 | + $result = $query->executeQuery(); |
|
| 57 | + while ($row = $result->fetch()) { |
|
| 58 | + $insert |
|
| 59 | + ->setParameter('ldap_dn', $row['ldap_dn']) |
|
| 60 | + ->setParameter('owncloud_name', $row['owncloud_name']) |
|
| 61 | + ->setParameter('directory_uuid', $row['directory_uuid']) |
|
| 62 | + ->setParameter('ldap_dn_hash', $row['ldap_dn_hash']) |
|
| 63 | + ; |
|
| 64 | 64 | |
| 65 | - $insert->executeStatement(); |
|
| 66 | - } |
|
| 67 | - $result->closeCursor(); |
|
| 68 | - } |
|
| 65 | + $insert->executeStatement(); |
|
| 66 | + } |
|
| 67 | + $result->closeCursor(); |
|
| 68 | + } |
|
| 69 | 69 | } |
@@ -32,68 +32,68 @@ |
||
| 32 | 32 | use OCP\Migration\IOutput; |
| 33 | 33 | |
| 34 | 34 | class Version1130Date20220110154718 extends GroupMappingMigration { |
| 35 | - public function getName() { |
|
| 36 | - return 'Copy ldap_group_mapping data from backup table and if needed'; |
|
| 37 | - } |
|
| 35 | + public function getName() { |
|
| 36 | + return 'Copy ldap_group_mapping data from backup table and if needed'; |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @param IOutput $output |
|
| 41 | - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 42 | - * @param array $options |
|
| 43 | - * @return null|ISchemaWrapper |
|
| 44 | - */ |
|
| 45 | - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 46 | - /** @var ISchemaWrapper $schema */ |
|
| 47 | - $schema = $schemaClosure(); |
|
| 39 | + /** |
|
| 40 | + * @param IOutput $output |
|
| 41 | + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 42 | + * @param array $options |
|
| 43 | + * @return null|ISchemaWrapper |
|
| 44 | + */ |
|
| 45 | + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 46 | + /** @var ISchemaWrapper $schema */ |
|
| 47 | + $schema = $schemaClosure(); |
|
| 48 | 48 | |
| 49 | - if (!$schema->hasTable('ldap_group_mapping_backup')) { |
|
| 50 | - // Backup table does not exist |
|
| 51 | - return null; |
|
| 52 | - } |
|
| 49 | + if (!$schema->hasTable('ldap_group_mapping_backup')) { |
|
| 50 | + // Backup table does not exist |
|
| 51 | + return null; |
|
| 52 | + } |
|
| 53 | 53 | |
| 54 | - $table = $schema->createTable('ldap_group_mapping'); |
|
| 55 | - $table->addColumn('ldap_dn', Types::STRING, [ |
|
| 56 | - 'notnull' => true, |
|
| 57 | - 'length' => 4096, |
|
| 58 | - 'default' => '', |
|
| 59 | - ]); |
|
| 60 | - $table->addColumn('owncloud_name', Types::STRING, [ |
|
| 61 | - 'notnull' => true, |
|
| 62 | - 'length' => 64, |
|
| 63 | - 'default' => '', |
|
| 64 | - ]); |
|
| 65 | - $table->addColumn('directory_uuid', Types::STRING, [ |
|
| 66 | - 'notnull' => true, |
|
| 67 | - 'length' => 255, |
|
| 68 | - 'default' => '', |
|
| 69 | - ]); |
|
| 70 | - $table->addColumn('ldap_dn_hash', Types::STRING, [ |
|
| 71 | - 'notnull' => false, |
|
| 72 | - 'length' => 64, |
|
| 73 | - ]); |
|
| 74 | - $table->setPrimaryKey(['owncloud_name']); |
|
| 75 | - $table->addUniqueIndex(['ldap_dn_hash'], 'ldap_group_dn_hashes'); |
|
| 76 | - $table->addUniqueIndex(['directory_uuid'], 'ldap_group_directory_uuid'); |
|
| 54 | + $table = $schema->createTable('ldap_group_mapping'); |
|
| 55 | + $table->addColumn('ldap_dn', Types::STRING, [ |
|
| 56 | + 'notnull' => true, |
|
| 57 | + 'length' => 4096, |
|
| 58 | + 'default' => '', |
|
| 59 | + ]); |
|
| 60 | + $table->addColumn('owncloud_name', Types::STRING, [ |
|
| 61 | + 'notnull' => true, |
|
| 62 | + 'length' => 64, |
|
| 63 | + 'default' => '', |
|
| 64 | + ]); |
|
| 65 | + $table->addColumn('directory_uuid', Types::STRING, [ |
|
| 66 | + 'notnull' => true, |
|
| 67 | + 'length' => 255, |
|
| 68 | + 'default' => '', |
|
| 69 | + ]); |
|
| 70 | + $table->addColumn('ldap_dn_hash', Types::STRING, [ |
|
| 71 | + 'notnull' => false, |
|
| 72 | + 'length' => 64, |
|
| 73 | + ]); |
|
| 74 | + $table->setPrimaryKey(['owncloud_name']); |
|
| 75 | + $table->addUniqueIndex(['ldap_dn_hash'], 'ldap_group_dn_hashes'); |
|
| 76 | + $table->addUniqueIndex(['directory_uuid'], 'ldap_group_directory_uuid'); |
|
| 77 | 77 | |
| 78 | - return $schema; |
|
| 79 | - } |
|
| 78 | + return $schema; |
|
| 79 | + } |
|
| 80 | 80 | |
| 81 | - /** |
|
| 82 | - * @param IOutput $output |
|
| 83 | - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 84 | - * @param array $options |
|
| 85 | - */ |
|
| 86 | - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { |
|
| 87 | - /** @var ISchemaWrapper $schema */ |
|
| 88 | - $schema = $schemaClosure(); |
|
| 81 | + /** |
|
| 82 | + * @param IOutput $output |
|
| 83 | + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 84 | + * @param array $options |
|
| 85 | + */ |
|
| 86 | + public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { |
|
| 87 | + /** @var ISchemaWrapper $schema */ |
|
| 88 | + $schema = $schemaClosure(); |
|
| 89 | 89 | |
| 90 | - if (!$schema->hasTable('ldap_group_mapping_backup')) { |
|
| 91 | - // Backup table does not exist |
|
| 92 | - return; |
|
| 93 | - } |
|
| 90 | + if (!$schema->hasTable('ldap_group_mapping_backup')) { |
|
| 91 | + // Backup table does not exist |
|
| 92 | + return; |
|
| 93 | + } |
|
| 94 | 94 | |
| 95 | - $output->startProgress(); |
|
| 96 | - $this->copyGroupMappingData('ldap_group_mapping_backup', 'ldap_group_mapping'); |
|
| 97 | - $output->finishProgress(); |
|
| 98 | - } |
|
| 95 | + $output->startProgress(); |
|
| 96 | + $this->copyGroupMappingData('ldap_group_mapping_backup', 'ldap_group_mapping'); |
|
| 97 | + $output->finishProgress(); |
|
| 98 | + } |
|
| 99 | 99 | } |
@@ -38,138 +38,138 @@ |
||
| 38 | 38 | |
| 39 | 39 | class Version1130Date20211102154716 extends SimpleMigrationStep { |
| 40 | 40 | |
| 41 | - /** @var IDBConnection */ |
|
| 42 | - private $dbc; |
|
| 43 | - /** @var LoggerInterface */ |
|
| 44 | - private $logger; |
|
| 45 | - |
|
| 46 | - public function __construct(IDBConnection $dbc, LoggerInterface $logger) { |
|
| 47 | - $this->dbc = $dbc; |
|
| 48 | - $this->logger = $logger; |
|
| 49 | - } |
|
| 50 | - |
|
| 51 | - public function getName() { |
|
| 52 | - return 'Adjust LDAP user and group ldap_dn column lengths and add ldap_dn_hash columns'; |
|
| 53 | - } |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * @param IOutput $output |
|
| 57 | - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 58 | - * @param array $options |
|
| 59 | - * @return null|ISchemaWrapper |
|
| 60 | - */ |
|
| 61 | - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 62 | - /** @var ISchemaWrapper $schema */ |
|
| 63 | - $schema = $schemaClosure(); |
|
| 64 | - |
|
| 65 | - $changeSchema = false; |
|
| 66 | - foreach (['ldap_user_mapping', 'ldap_group_mapping'] as $tableName) { |
|
| 67 | - $table = $schema->getTable($tableName); |
|
| 68 | - if (!$table->hasColumn('ldap_dn_hash')) { |
|
| 69 | - $table->addColumn('ldap_dn_hash', Types::STRING, [ |
|
| 70 | - 'notnull' => false, |
|
| 71 | - 'length' => 64, |
|
| 72 | - ]); |
|
| 73 | - $changeSchema = true; |
|
| 74 | - } |
|
| 75 | - $column = $table->getColumn('ldap_dn'); |
|
| 76 | - if ($tableName === 'ldap_user_mapping') { |
|
| 77 | - if ($column->getLength() < 4096) { |
|
| 78 | - $column->setLength(4096); |
|
| 79 | - $changeSchema = true; |
|
| 80 | - } |
|
| 81 | - |
|
| 82 | - if ($table->hasIndex('ldap_dn_users')) { |
|
| 83 | - $table->dropIndex('ldap_dn_users'); |
|
| 84 | - $changeSchema = true; |
|
| 85 | - } |
|
| 86 | - if (!$table->hasIndex('ldap_user_dn_hashes')) { |
|
| 87 | - $table->addUniqueIndex(['ldap_dn_hash'], 'ldap_user_dn_hashes'); |
|
| 88 | - $changeSchema = true; |
|
| 89 | - } |
|
| 90 | - if (!$table->hasIndex('ldap_user_directory_uuid')) { |
|
| 91 | - $table->addUniqueIndex(['directory_uuid'], 'ldap_user_directory_uuid'); |
|
| 92 | - $changeSchema = true; |
|
| 93 | - } |
|
| 94 | - } else { |
|
| 95 | - // We need to copy the table twice to be able to change primary key, prepare the backup table |
|
| 96 | - $table2 = $schema->createTable('ldap_group_mapping_backup'); |
|
| 97 | - $table2->addColumn('ldap_dn', Types::STRING, [ |
|
| 98 | - 'notnull' => true, |
|
| 99 | - 'length' => 4096, |
|
| 100 | - 'default' => '', |
|
| 101 | - ]); |
|
| 102 | - $table2->addColumn('owncloud_name', Types::STRING, [ |
|
| 103 | - 'notnull' => true, |
|
| 104 | - 'length' => 64, |
|
| 105 | - 'default' => '', |
|
| 106 | - ]); |
|
| 107 | - $table2->addColumn('directory_uuid', Types::STRING, [ |
|
| 108 | - 'notnull' => true, |
|
| 109 | - 'length' => 255, |
|
| 110 | - 'default' => '', |
|
| 111 | - ]); |
|
| 112 | - $table2->addColumn('ldap_dn_hash', Types::STRING, [ |
|
| 113 | - 'notnull' => false, |
|
| 114 | - 'length' => 64, |
|
| 115 | - ]); |
|
| 116 | - $table2->setPrimaryKey(['owncloud_name'], 'lgm_backup_primary'); |
|
| 117 | - $changeSchema = true; |
|
| 118 | - } |
|
| 119 | - } |
|
| 120 | - |
|
| 121 | - return $changeSchema ? $schema : null; |
|
| 122 | - } |
|
| 123 | - |
|
| 124 | - /** |
|
| 125 | - * @param IOutput $output |
|
| 126 | - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 127 | - * @param array $options |
|
| 128 | - */ |
|
| 129 | - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { |
|
| 130 | - $this->handleDNHashes('ldap_group_mapping'); |
|
| 131 | - $this->handleDNHashes('ldap_user_mapping'); |
|
| 132 | - } |
|
| 133 | - |
|
| 134 | - protected function handleDNHashes(string $table): void { |
|
| 135 | - $select = $this->getSelectQuery($table); |
|
| 136 | - $update = $this->getUpdateQuery($table); |
|
| 137 | - |
|
| 138 | - $result = $select->executeQuery(); |
|
| 139 | - while ($row = $result->fetch()) { |
|
| 140 | - $dnHash = hash('sha256', $row['ldap_dn'], false); |
|
| 141 | - $update->setParameter('name', $row['owncloud_name']); |
|
| 142 | - $update->setParameter('dn_hash', $dnHash); |
|
| 143 | - try { |
|
| 144 | - $update->executeStatement(); |
|
| 145 | - } catch (Exception $e) { |
|
| 146 | - $this->logger->error('Failed to add hash "{dnHash}" ("{name}" of {table})', |
|
| 147 | - [ |
|
| 148 | - 'app' => 'user_ldap', |
|
| 149 | - 'name' => $row['owncloud_name'], |
|
| 150 | - 'dnHash' => $dnHash, |
|
| 151 | - 'table' => $table, |
|
| 152 | - 'exception' => $e, |
|
| 153 | - ] |
|
| 154 | - ); |
|
| 155 | - } |
|
| 156 | - } |
|
| 157 | - $result->closeCursor(); |
|
| 158 | - } |
|
| 159 | - |
|
| 160 | - protected function getSelectQuery(string $table): IQueryBuilder { |
|
| 161 | - $qb = $this->dbc->getQueryBuilder(); |
|
| 162 | - $qb->select('owncloud_name', 'ldap_dn', 'ldap_dn_hash') |
|
| 163 | - ->from($table) |
|
| 164 | - ->where($qb->expr()->isNull('ldap_dn_hash')); |
|
| 165 | - return $qb; |
|
| 166 | - } |
|
| 167 | - |
|
| 168 | - protected function getUpdateQuery(string $table): IQueryBuilder { |
|
| 169 | - $qb = $this->dbc->getQueryBuilder(); |
|
| 170 | - $qb->update($table) |
|
| 171 | - ->set('ldap_dn_hash', $qb->createParameter('dn_hash')) |
|
| 172 | - ->where($qb->expr()->eq('owncloud_name', $qb->createParameter('name'))); |
|
| 173 | - return $qb; |
|
| 174 | - } |
|
| 41 | + /** @var IDBConnection */ |
|
| 42 | + private $dbc; |
|
| 43 | + /** @var LoggerInterface */ |
|
| 44 | + private $logger; |
|
| 45 | + |
|
| 46 | + public function __construct(IDBConnection $dbc, LoggerInterface $logger) { |
|
| 47 | + $this->dbc = $dbc; |
|
| 48 | + $this->logger = $logger; |
|
| 49 | + } |
|
| 50 | + |
|
| 51 | + public function getName() { |
|
| 52 | + return 'Adjust LDAP user and group ldap_dn column lengths and add ldap_dn_hash columns'; |
|
| 53 | + } |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * @param IOutput $output |
|
| 57 | + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 58 | + * @param array $options |
|
| 59 | + * @return null|ISchemaWrapper |
|
| 60 | + */ |
|
| 61 | + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 62 | + /** @var ISchemaWrapper $schema */ |
|
| 63 | + $schema = $schemaClosure(); |
|
| 64 | + |
|
| 65 | + $changeSchema = false; |
|
| 66 | + foreach (['ldap_user_mapping', 'ldap_group_mapping'] as $tableName) { |
|
| 67 | + $table = $schema->getTable($tableName); |
|
| 68 | + if (!$table->hasColumn('ldap_dn_hash')) { |
|
| 69 | + $table->addColumn('ldap_dn_hash', Types::STRING, [ |
|
| 70 | + 'notnull' => false, |
|
| 71 | + 'length' => 64, |
|
| 72 | + ]); |
|
| 73 | + $changeSchema = true; |
|
| 74 | + } |
|
| 75 | + $column = $table->getColumn('ldap_dn'); |
|
| 76 | + if ($tableName === 'ldap_user_mapping') { |
|
| 77 | + if ($column->getLength() < 4096) { |
|
| 78 | + $column->setLength(4096); |
|
| 79 | + $changeSchema = true; |
|
| 80 | + } |
|
| 81 | + |
|
| 82 | + if ($table->hasIndex('ldap_dn_users')) { |
|
| 83 | + $table->dropIndex('ldap_dn_users'); |
|
| 84 | + $changeSchema = true; |
|
| 85 | + } |
|
| 86 | + if (!$table->hasIndex('ldap_user_dn_hashes')) { |
|
| 87 | + $table->addUniqueIndex(['ldap_dn_hash'], 'ldap_user_dn_hashes'); |
|
| 88 | + $changeSchema = true; |
|
| 89 | + } |
|
| 90 | + if (!$table->hasIndex('ldap_user_directory_uuid')) { |
|
| 91 | + $table->addUniqueIndex(['directory_uuid'], 'ldap_user_directory_uuid'); |
|
| 92 | + $changeSchema = true; |
|
| 93 | + } |
|
| 94 | + } else { |
|
| 95 | + // We need to copy the table twice to be able to change primary key, prepare the backup table |
|
| 96 | + $table2 = $schema->createTable('ldap_group_mapping_backup'); |
|
| 97 | + $table2->addColumn('ldap_dn', Types::STRING, [ |
|
| 98 | + 'notnull' => true, |
|
| 99 | + 'length' => 4096, |
|
| 100 | + 'default' => '', |
|
| 101 | + ]); |
|
| 102 | + $table2->addColumn('owncloud_name', Types::STRING, [ |
|
| 103 | + 'notnull' => true, |
|
| 104 | + 'length' => 64, |
|
| 105 | + 'default' => '', |
|
| 106 | + ]); |
|
| 107 | + $table2->addColumn('directory_uuid', Types::STRING, [ |
|
| 108 | + 'notnull' => true, |
|
| 109 | + 'length' => 255, |
|
| 110 | + 'default' => '', |
|
| 111 | + ]); |
|
| 112 | + $table2->addColumn('ldap_dn_hash', Types::STRING, [ |
|
| 113 | + 'notnull' => false, |
|
| 114 | + 'length' => 64, |
|
| 115 | + ]); |
|
| 116 | + $table2->setPrimaryKey(['owncloud_name'], 'lgm_backup_primary'); |
|
| 117 | + $changeSchema = true; |
|
| 118 | + } |
|
| 119 | + } |
|
| 120 | + |
|
| 121 | + return $changeSchema ? $schema : null; |
|
| 122 | + } |
|
| 123 | + |
|
| 124 | + /** |
|
| 125 | + * @param IOutput $output |
|
| 126 | + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 127 | + * @param array $options |
|
| 128 | + */ |
|
| 129 | + public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { |
|
| 130 | + $this->handleDNHashes('ldap_group_mapping'); |
|
| 131 | + $this->handleDNHashes('ldap_user_mapping'); |
|
| 132 | + } |
|
| 133 | + |
|
| 134 | + protected function handleDNHashes(string $table): void { |
|
| 135 | + $select = $this->getSelectQuery($table); |
|
| 136 | + $update = $this->getUpdateQuery($table); |
|
| 137 | + |
|
| 138 | + $result = $select->executeQuery(); |
|
| 139 | + while ($row = $result->fetch()) { |
|
| 140 | + $dnHash = hash('sha256', $row['ldap_dn'], false); |
|
| 141 | + $update->setParameter('name', $row['owncloud_name']); |
|
| 142 | + $update->setParameter('dn_hash', $dnHash); |
|
| 143 | + try { |
|
| 144 | + $update->executeStatement(); |
|
| 145 | + } catch (Exception $e) { |
|
| 146 | + $this->logger->error('Failed to add hash "{dnHash}" ("{name}" of {table})', |
|
| 147 | + [ |
|
| 148 | + 'app' => 'user_ldap', |
|
| 149 | + 'name' => $row['owncloud_name'], |
|
| 150 | + 'dnHash' => $dnHash, |
|
| 151 | + 'table' => $table, |
|
| 152 | + 'exception' => $e, |
|
| 153 | + ] |
|
| 154 | + ); |
|
| 155 | + } |
|
| 156 | + } |
|
| 157 | + $result->closeCursor(); |
|
| 158 | + } |
|
| 159 | + |
|
| 160 | + protected function getSelectQuery(string $table): IQueryBuilder { |
|
| 161 | + $qb = $this->dbc->getQueryBuilder(); |
|
| 162 | + $qb->select('owncloud_name', 'ldap_dn', 'ldap_dn_hash') |
|
| 163 | + ->from($table) |
|
| 164 | + ->where($qb->expr()->isNull('ldap_dn_hash')); |
|
| 165 | + return $qb; |
|
| 166 | + } |
|
| 167 | + |
|
| 168 | + protected function getUpdateQuery(string $table): IQueryBuilder { |
|
| 169 | + $qb = $this->dbc->getQueryBuilder(); |
|
| 170 | + $qb->update($table) |
|
| 171 | + ->set('ldap_dn_hash', $qb->createParameter('dn_hash')) |
|
| 172 | + ->where($qb->expr()->eq('owncloud_name', $qb->createParameter('name'))); |
|
| 173 | + return $qb; |
|
| 174 | + } |
|
| 175 | 175 | } |
@@ -6,80 +6,80 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\User_LDAP\\Access' => $baseDir . '/../lib/Access.php', |
|
| 11 | - 'OCA\\User_LDAP\\AccessFactory' => $baseDir . '/../lib/AccessFactory.php', |
|
| 12 | - 'OCA\\User_LDAP\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 13 | - 'OCA\\User_LDAP\\BackendUtility' => $baseDir . '/../lib/BackendUtility.php', |
|
| 14 | - 'OCA\\User_LDAP\\Command\\CheckUser' => $baseDir . '/../lib/Command/CheckUser.php', |
|
| 15 | - 'OCA\\User_LDAP\\Command\\CreateEmptyConfig' => $baseDir . '/../lib/Command/CreateEmptyConfig.php', |
|
| 16 | - 'OCA\\User_LDAP\\Command\\DeleteConfig' => $baseDir . '/../lib/Command/DeleteConfig.php', |
|
| 17 | - 'OCA\\User_LDAP\\Command\\ResetUser' => $baseDir . '/../lib/Command/ResetUser.php', |
|
| 18 | - 'OCA\\User_LDAP\\Command\\Search' => $baseDir . '/../lib/Command/Search.php', |
|
| 19 | - 'OCA\\User_LDAP\\Command\\SetConfig' => $baseDir . '/../lib/Command/SetConfig.php', |
|
| 20 | - 'OCA\\User_LDAP\\Command\\ShowConfig' => $baseDir . '/../lib/Command/ShowConfig.php', |
|
| 21 | - 'OCA\\User_LDAP\\Command\\ShowRemnants' => $baseDir . '/../lib/Command/ShowRemnants.php', |
|
| 22 | - 'OCA\\User_LDAP\\Command\\TestConfig' => $baseDir . '/../lib/Command/TestConfig.php', |
|
| 23 | - 'OCA\\User_LDAP\\Configuration' => $baseDir . '/../lib/Configuration.php', |
|
| 24 | - 'OCA\\User_LDAP\\Connection' => $baseDir . '/../lib/Connection.php', |
|
| 25 | - 'OCA\\User_LDAP\\ConnectionFactory' => $baseDir . '/../lib/ConnectionFactory.php', |
|
| 26 | - 'OCA\\User_LDAP\\Controller\\ConfigAPIController' => $baseDir . '/../lib/Controller/ConfigAPIController.php', |
|
| 27 | - 'OCA\\User_LDAP\\Controller\\RenewPasswordController' => $baseDir . '/../lib/Controller/RenewPasswordController.php', |
|
| 28 | - 'OCA\\User_LDAP\\Events\\GroupBackendRegistered' => $baseDir . '/../lib/Events/GroupBackendRegistered.php', |
|
| 29 | - 'OCA\\User_LDAP\\Events\\UserBackendRegistered' => $baseDir . '/../lib/Events/UserBackendRegistered.php', |
|
| 30 | - 'OCA\\User_LDAP\\Exceptions\\AttributeNotSet' => $baseDir . '/../lib/Exceptions/AttributeNotSet.php', |
|
| 31 | - 'OCA\\User_LDAP\\Exceptions\\ConstraintViolationException' => $baseDir . '/../lib/Exceptions/ConstraintViolationException.php', |
|
| 32 | - 'OCA\\User_LDAP\\Exceptions\\NoMoreResults' => $baseDir . '/../lib/Exceptions/NoMoreResults.php', |
|
| 33 | - 'OCA\\User_LDAP\\Exceptions\\NotOnLDAP' => $baseDir . '/../lib/Exceptions/NotOnLDAP.php', |
|
| 34 | - 'OCA\\User_LDAP\\FilesystemHelper' => $baseDir . '/../lib/FilesystemHelper.php', |
|
| 35 | - 'OCA\\User_LDAP\\GroupPluginManager' => $baseDir . '/../lib/GroupPluginManager.php', |
|
| 36 | - 'OCA\\User_LDAP\\Group_LDAP' => $baseDir . '/../lib/Group_LDAP.php', |
|
| 37 | - 'OCA\\User_LDAP\\Group_Proxy' => $baseDir . '/../lib/Group_Proxy.php', |
|
| 38 | - 'OCA\\User_LDAP\\Handler\\ExtStorageConfigHandler' => $baseDir . '/../lib/Handler/ExtStorageConfigHandler.php', |
|
| 39 | - 'OCA\\User_LDAP\\Helper' => $baseDir . '/../lib/Helper.php', |
|
| 40 | - 'OCA\\User_LDAP\\IGroupLDAP' => $baseDir . '/../lib/IGroupLDAP.php', |
|
| 41 | - 'OCA\\User_LDAP\\ILDAPGroupPlugin' => $baseDir . '/../lib/ILDAPGroupPlugin.php', |
|
| 42 | - 'OCA\\User_LDAP\\ILDAPUserPlugin' => $baseDir . '/../lib/ILDAPUserPlugin.php', |
|
| 43 | - 'OCA\\User_LDAP\\ILDAPWrapper' => $baseDir . '/../lib/ILDAPWrapper.php', |
|
| 44 | - 'OCA\\User_LDAP\\IUserLDAP' => $baseDir . '/../lib/IUserLDAP.php', |
|
| 45 | - 'OCA\\User_LDAP\\Jobs\\CleanUp' => $baseDir . '/../lib/Jobs/CleanUp.php', |
|
| 46 | - 'OCA\\User_LDAP\\Jobs\\Sync' => $baseDir . '/../lib/Jobs/Sync.php', |
|
| 47 | - 'OCA\\User_LDAP\\Jobs\\UpdateGroups' => $baseDir . '/../lib/Jobs/UpdateGroups.php', |
|
| 48 | - 'OCA\\User_LDAP\\LDAP' => $baseDir . '/../lib/LDAP.php', |
|
| 49 | - 'OCA\\User_LDAP\\LDAPProvider' => $baseDir . '/../lib/LDAPProvider.php', |
|
| 50 | - 'OCA\\User_LDAP\\LDAPProviderFactory' => $baseDir . '/../lib/LDAPProviderFactory.php', |
|
| 51 | - 'OCA\\User_LDAP\\LDAPUtility' => $baseDir . '/../lib/LDAPUtility.php', |
|
| 52 | - 'OCA\\User_LDAP\\Mapping\\AbstractMapping' => $baseDir . '/../lib/Mapping/AbstractMapping.php', |
|
| 53 | - 'OCA\\User_LDAP\\Mapping\\GroupMapping' => $baseDir . '/../lib/Mapping/GroupMapping.php', |
|
| 54 | - 'OCA\\User_LDAP\\Mapping\\UserMapping' => $baseDir . '/../lib/Mapping/UserMapping.php', |
|
| 55 | - 'OCA\\User_LDAP\\Migration\\GroupMappingMigration' => $baseDir . '/../lib/Migration/GroupMappingMigration.php', |
|
| 56 | - 'OCA\\User_LDAP\\Migration\\RemoveRefreshTime' => $baseDir . '/../lib/Migration/RemoveRefreshTime.php', |
|
| 57 | - 'OCA\\User_LDAP\\Migration\\SetDefaultProvider' => $baseDir . '/../lib/Migration/SetDefaultProvider.php', |
|
| 58 | - 'OCA\\User_LDAP\\Migration\\UUIDFix' => $baseDir . '/../lib/Migration/UUIDFix.php', |
|
| 59 | - 'OCA\\User_LDAP\\Migration\\UUIDFixGroup' => $baseDir . '/../lib/Migration/UUIDFixGroup.php', |
|
| 60 | - 'OCA\\User_LDAP\\Migration\\UUIDFixInsert' => $baseDir . '/../lib/Migration/UUIDFixInsert.php', |
|
| 61 | - 'OCA\\User_LDAP\\Migration\\UUIDFixUser' => $baseDir . '/../lib/Migration/UUIDFixUser.php', |
|
| 62 | - 'OCA\\User_LDAP\\Migration\\UnsetDefaultProvider' => $baseDir . '/../lib/Migration/UnsetDefaultProvider.php', |
|
| 63 | - 'OCA\\User_LDAP\\Migration\\Version1010Date20200630192842' => $baseDir . '/../lib/Migration/Version1010Date20200630192842.php', |
|
| 64 | - 'OCA\\User_LDAP\\Migration\\Version1120Date20210917155206' => $baseDir . '/../lib/Migration/Version1120Date20210917155206.php', |
|
| 65 | - 'OCA\\User_LDAP\\Migration\\Version1130Date20211102154716' => $baseDir . '/../lib/Migration/Version1130Date20211102154716.php', |
|
| 66 | - 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154717' => $baseDir . '/../lib/Migration/Version1130Date20220110154717.php', |
|
| 67 | - 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154718' => $baseDir . '/../lib/Migration/Version1130Date20220110154718.php', |
|
| 68 | - 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154719' => $baseDir . '/../lib/Migration/Version1130Date20220110154719.php', |
|
| 69 | - 'OCA\\User_LDAP\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php', |
|
| 70 | - 'OCA\\User_LDAP\\PagedResults\\IAdapter' => $baseDir . '/../lib/PagedResults/IAdapter.php', |
|
| 71 | - 'OCA\\User_LDAP\\PagedResults\\Php73' => $baseDir . '/../lib/PagedResults/Php73.php', |
|
| 72 | - 'OCA\\User_LDAP\\PagedResults\\TLinkId' => $baseDir . '/../lib/PagedResults/TLinkId.php', |
|
| 73 | - 'OCA\\User_LDAP\\Proxy' => $baseDir . '/../lib/Proxy.php', |
|
| 74 | - 'OCA\\User_LDAP\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php', |
|
| 75 | - 'OCA\\User_LDAP\\Settings\\Section' => $baseDir . '/../lib/Settings/Section.php', |
|
| 76 | - 'OCA\\User_LDAP\\UserPluginManager' => $baseDir . '/../lib/UserPluginManager.php', |
|
| 77 | - 'OCA\\User_LDAP\\User\\DeletedUsersIndex' => $baseDir . '/../lib/User/DeletedUsersIndex.php', |
|
| 78 | - 'OCA\\User_LDAP\\User\\Manager' => $baseDir . '/../lib/User/Manager.php', |
|
| 79 | - 'OCA\\User_LDAP\\User\\OfflineUser' => $baseDir . '/../lib/User/OfflineUser.php', |
|
| 80 | - 'OCA\\User_LDAP\\User\\User' => $baseDir . '/../lib/User/User.php', |
|
| 81 | - 'OCA\\User_LDAP\\User_LDAP' => $baseDir . '/../lib/User_LDAP.php', |
|
| 82 | - 'OCA\\User_LDAP\\User_Proxy' => $baseDir . '/../lib/User_Proxy.php', |
|
| 83 | - 'OCA\\User_LDAP\\Wizard' => $baseDir . '/../lib/Wizard.php', |
|
| 84 | - 'OCA\\User_LDAP\\WizardResult' => $baseDir . '/../lib/WizardResult.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\User_LDAP\\Access' => $baseDir.'/../lib/Access.php', |
|
| 11 | + 'OCA\\User_LDAP\\AccessFactory' => $baseDir.'/../lib/AccessFactory.php', |
|
| 12 | + 'OCA\\User_LDAP\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 13 | + 'OCA\\User_LDAP\\BackendUtility' => $baseDir.'/../lib/BackendUtility.php', |
|
| 14 | + 'OCA\\User_LDAP\\Command\\CheckUser' => $baseDir.'/../lib/Command/CheckUser.php', |
|
| 15 | + 'OCA\\User_LDAP\\Command\\CreateEmptyConfig' => $baseDir.'/../lib/Command/CreateEmptyConfig.php', |
|
| 16 | + 'OCA\\User_LDAP\\Command\\DeleteConfig' => $baseDir.'/../lib/Command/DeleteConfig.php', |
|
| 17 | + 'OCA\\User_LDAP\\Command\\ResetUser' => $baseDir.'/../lib/Command/ResetUser.php', |
|
| 18 | + 'OCA\\User_LDAP\\Command\\Search' => $baseDir.'/../lib/Command/Search.php', |
|
| 19 | + 'OCA\\User_LDAP\\Command\\SetConfig' => $baseDir.'/../lib/Command/SetConfig.php', |
|
| 20 | + 'OCA\\User_LDAP\\Command\\ShowConfig' => $baseDir.'/../lib/Command/ShowConfig.php', |
|
| 21 | + 'OCA\\User_LDAP\\Command\\ShowRemnants' => $baseDir.'/../lib/Command/ShowRemnants.php', |
|
| 22 | + 'OCA\\User_LDAP\\Command\\TestConfig' => $baseDir.'/../lib/Command/TestConfig.php', |
|
| 23 | + 'OCA\\User_LDAP\\Configuration' => $baseDir.'/../lib/Configuration.php', |
|
| 24 | + 'OCA\\User_LDAP\\Connection' => $baseDir.'/../lib/Connection.php', |
|
| 25 | + 'OCA\\User_LDAP\\ConnectionFactory' => $baseDir.'/../lib/ConnectionFactory.php', |
|
| 26 | + 'OCA\\User_LDAP\\Controller\\ConfigAPIController' => $baseDir.'/../lib/Controller/ConfigAPIController.php', |
|
| 27 | + 'OCA\\User_LDAP\\Controller\\RenewPasswordController' => $baseDir.'/../lib/Controller/RenewPasswordController.php', |
|
| 28 | + 'OCA\\User_LDAP\\Events\\GroupBackendRegistered' => $baseDir.'/../lib/Events/GroupBackendRegistered.php', |
|
| 29 | + 'OCA\\User_LDAP\\Events\\UserBackendRegistered' => $baseDir.'/../lib/Events/UserBackendRegistered.php', |
|
| 30 | + 'OCA\\User_LDAP\\Exceptions\\AttributeNotSet' => $baseDir.'/../lib/Exceptions/AttributeNotSet.php', |
|
| 31 | + 'OCA\\User_LDAP\\Exceptions\\ConstraintViolationException' => $baseDir.'/../lib/Exceptions/ConstraintViolationException.php', |
|
| 32 | + 'OCA\\User_LDAP\\Exceptions\\NoMoreResults' => $baseDir.'/../lib/Exceptions/NoMoreResults.php', |
|
| 33 | + 'OCA\\User_LDAP\\Exceptions\\NotOnLDAP' => $baseDir.'/../lib/Exceptions/NotOnLDAP.php', |
|
| 34 | + 'OCA\\User_LDAP\\FilesystemHelper' => $baseDir.'/../lib/FilesystemHelper.php', |
|
| 35 | + 'OCA\\User_LDAP\\GroupPluginManager' => $baseDir.'/../lib/GroupPluginManager.php', |
|
| 36 | + 'OCA\\User_LDAP\\Group_LDAP' => $baseDir.'/../lib/Group_LDAP.php', |
|
| 37 | + 'OCA\\User_LDAP\\Group_Proxy' => $baseDir.'/../lib/Group_Proxy.php', |
|
| 38 | + 'OCA\\User_LDAP\\Handler\\ExtStorageConfigHandler' => $baseDir.'/../lib/Handler/ExtStorageConfigHandler.php', |
|
| 39 | + 'OCA\\User_LDAP\\Helper' => $baseDir.'/../lib/Helper.php', |
|
| 40 | + 'OCA\\User_LDAP\\IGroupLDAP' => $baseDir.'/../lib/IGroupLDAP.php', |
|
| 41 | + 'OCA\\User_LDAP\\ILDAPGroupPlugin' => $baseDir.'/../lib/ILDAPGroupPlugin.php', |
|
| 42 | + 'OCA\\User_LDAP\\ILDAPUserPlugin' => $baseDir.'/../lib/ILDAPUserPlugin.php', |
|
| 43 | + 'OCA\\User_LDAP\\ILDAPWrapper' => $baseDir.'/../lib/ILDAPWrapper.php', |
|
| 44 | + 'OCA\\User_LDAP\\IUserLDAP' => $baseDir.'/../lib/IUserLDAP.php', |
|
| 45 | + 'OCA\\User_LDAP\\Jobs\\CleanUp' => $baseDir.'/../lib/Jobs/CleanUp.php', |
|
| 46 | + 'OCA\\User_LDAP\\Jobs\\Sync' => $baseDir.'/../lib/Jobs/Sync.php', |
|
| 47 | + 'OCA\\User_LDAP\\Jobs\\UpdateGroups' => $baseDir.'/../lib/Jobs/UpdateGroups.php', |
|
| 48 | + 'OCA\\User_LDAP\\LDAP' => $baseDir.'/../lib/LDAP.php', |
|
| 49 | + 'OCA\\User_LDAP\\LDAPProvider' => $baseDir.'/../lib/LDAPProvider.php', |
|
| 50 | + 'OCA\\User_LDAP\\LDAPProviderFactory' => $baseDir.'/../lib/LDAPProviderFactory.php', |
|
| 51 | + 'OCA\\User_LDAP\\LDAPUtility' => $baseDir.'/../lib/LDAPUtility.php', |
|
| 52 | + 'OCA\\User_LDAP\\Mapping\\AbstractMapping' => $baseDir.'/../lib/Mapping/AbstractMapping.php', |
|
| 53 | + 'OCA\\User_LDAP\\Mapping\\GroupMapping' => $baseDir.'/../lib/Mapping/GroupMapping.php', |
|
| 54 | + 'OCA\\User_LDAP\\Mapping\\UserMapping' => $baseDir.'/../lib/Mapping/UserMapping.php', |
|
| 55 | + 'OCA\\User_LDAP\\Migration\\GroupMappingMigration' => $baseDir.'/../lib/Migration/GroupMappingMigration.php', |
|
| 56 | + 'OCA\\User_LDAP\\Migration\\RemoveRefreshTime' => $baseDir.'/../lib/Migration/RemoveRefreshTime.php', |
|
| 57 | + 'OCA\\User_LDAP\\Migration\\SetDefaultProvider' => $baseDir.'/../lib/Migration/SetDefaultProvider.php', |
|
| 58 | + 'OCA\\User_LDAP\\Migration\\UUIDFix' => $baseDir.'/../lib/Migration/UUIDFix.php', |
|
| 59 | + 'OCA\\User_LDAP\\Migration\\UUIDFixGroup' => $baseDir.'/../lib/Migration/UUIDFixGroup.php', |
|
| 60 | + 'OCA\\User_LDAP\\Migration\\UUIDFixInsert' => $baseDir.'/../lib/Migration/UUIDFixInsert.php', |
|
| 61 | + 'OCA\\User_LDAP\\Migration\\UUIDFixUser' => $baseDir.'/../lib/Migration/UUIDFixUser.php', |
|
| 62 | + 'OCA\\User_LDAP\\Migration\\UnsetDefaultProvider' => $baseDir.'/../lib/Migration/UnsetDefaultProvider.php', |
|
| 63 | + 'OCA\\User_LDAP\\Migration\\Version1010Date20200630192842' => $baseDir.'/../lib/Migration/Version1010Date20200630192842.php', |
|
| 64 | + 'OCA\\User_LDAP\\Migration\\Version1120Date20210917155206' => $baseDir.'/../lib/Migration/Version1120Date20210917155206.php', |
|
| 65 | + 'OCA\\User_LDAP\\Migration\\Version1130Date20211102154716' => $baseDir.'/../lib/Migration/Version1130Date20211102154716.php', |
|
| 66 | + 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154717' => $baseDir.'/../lib/Migration/Version1130Date20220110154717.php', |
|
| 67 | + 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154718' => $baseDir.'/../lib/Migration/Version1130Date20220110154718.php', |
|
| 68 | + 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154719' => $baseDir.'/../lib/Migration/Version1130Date20220110154719.php', |
|
| 69 | + 'OCA\\User_LDAP\\Notification\\Notifier' => $baseDir.'/../lib/Notification/Notifier.php', |
|
| 70 | + 'OCA\\User_LDAP\\PagedResults\\IAdapter' => $baseDir.'/../lib/PagedResults/IAdapter.php', |
|
| 71 | + 'OCA\\User_LDAP\\PagedResults\\Php73' => $baseDir.'/../lib/PagedResults/Php73.php', |
|
| 72 | + 'OCA\\User_LDAP\\PagedResults\\TLinkId' => $baseDir.'/../lib/PagedResults/TLinkId.php', |
|
| 73 | + 'OCA\\User_LDAP\\Proxy' => $baseDir.'/../lib/Proxy.php', |
|
| 74 | + 'OCA\\User_LDAP\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php', |
|
| 75 | + 'OCA\\User_LDAP\\Settings\\Section' => $baseDir.'/../lib/Settings/Section.php', |
|
| 76 | + 'OCA\\User_LDAP\\UserPluginManager' => $baseDir.'/../lib/UserPluginManager.php', |
|
| 77 | + 'OCA\\User_LDAP\\User\\DeletedUsersIndex' => $baseDir.'/../lib/User/DeletedUsersIndex.php', |
|
| 78 | + 'OCA\\User_LDAP\\User\\Manager' => $baseDir.'/../lib/User/Manager.php', |
|
| 79 | + 'OCA\\User_LDAP\\User\\OfflineUser' => $baseDir.'/../lib/User/OfflineUser.php', |
|
| 80 | + 'OCA\\User_LDAP\\User\\User' => $baseDir.'/../lib/User/User.php', |
|
| 81 | + 'OCA\\User_LDAP\\User_LDAP' => $baseDir.'/../lib/User_LDAP.php', |
|
| 82 | + 'OCA\\User_LDAP\\User_Proxy' => $baseDir.'/../lib/User_Proxy.php', |
|
| 83 | + 'OCA\\User_LDAP\\Wizard' => $baseDir.'/../lib/Wizard.php', |
|
| 84 | + 'OCA\\User_LDAP\\WizardResult' => $baseDir.'/../lib/WizardResult.php', |
|
| 85 | 85 | ); |
@@ -6,102 +6,102 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitUser_LDAP |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\User_LDAP\\' => 14, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\User_LDAP\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
| 25 | - 'OCA\\User_LDAP\\Access' => __DIR__ . '/..' . '/../lib/Access.php', |
|
| 26 | - 'OCA\\User_LDAP\\AccessFactory' => __DIR__ . '/..' . '/../lib/AccessFactory.php', |
|
| 27 | - 'OCA\\User_LDAP\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 28 | - 'OCA\\User_LDAP\\BackendUtility' => __DIR__ . '/..' . '/../lib/BackendUtility.php', |
|
| 29 | - 'OCA\\User_LDAP\\Command\\CheckUser' => __DIR__ . '/..' . '/../lib/Command/CheckUser.php', |
|
| 30 | - 'OCA\\User_LDAP\\Command\\CreateEmptyConfig' => __DIR__ . '/..' . '/../lib/Command/CreateEmptyConfig.php', |
|
| 31 | - 'OCA\\User_LDAP\\Command\\DeleteConfig' => __DIR__ . '/..' . '/../lib/Command/DeleteConfig.php', |
|
| 32 | - 'OCA\\User_LDAP\\Command\\ResetUser' => __DIR__ . '/..' . '/../lib/Command/ResetUser.php', |
|
| 33 | - 'OCA\\User_LDAP\\Command\\Search' => __DIR__ . '/..' . '/../lib/Command/Search.php', |
|
| 34 | - 'OCA\\User_LDAP\\Command\\SetConfig' => __DIR__ . '/..' . '/../lib/Command/SetConfig.php', |
|
| 35 | - 'OCA\\User_LDAP\\Command\\ShowConfig' => __DIR__ . '/..' . '/../lib/Command/ShowConfig.php', |
|
| 36 | - 'OCA\\User_LDAP\\Command\\ShowRemnants' => __DIR__ . '/..' . '/../lib/Command/ShowRemnants.php', |
|
| 37 | - 'OCA\\User_LDAP\\Command\\TestConfig' => __DIR__ . '/..' . '/../lib/Command/TestConfig.php', |
|
| 38 | - 'OCA\\User_LDAP\\Configuration' => __DIR__ . '/..' . '/../lib/Configuration.php', |
|
| 39 | - 'OCA\\User_LDAP\\Connection' => __DIR__ . '/..' . '/../lib/Connection.php', |
|
| 40 | - 'OCA\\User_LDAP\\ConnectionFactory' => __DIR__ . '/..' . '/../lib/ConnectionFactory.php', |
|
| 41 | - 'OCA\\User_LDAP\\Controller\\ConfigAPIController' => __DIR__ . '/..' . '/../lib/Controller/ConfigAPIController.php', |
|
| 42 | - 'OCA\\User_LDAP\\Controller\\RenewPasswordController' => __DIR__ . '/..' . '/../lib/Controller/RenewPasswordController.php', |
|
| 43 | - 'OCA\\User_LDAP\\Events\\GroupBackendRegistered' => __DIR__ . '/..' . '/../lib/Events/GroupBackendRegistered.php', |
|
| 44 | - 'OCA\\User_LDAP\\Events\\UserBackendRegistered' => __DIR__ . '/..' . '/../lib/Events/UserBackendRegistered.php', |
|
| 45 | - 'OCA\\User_LDAP\\Exceptions\\AttributeNotSet' => __DIR__ . '/..' . '/../lib/Exceptions/AttributeNotSet.php', |
|
| 46 | - 'OCA\\User_LDAP\\Exceptions\\ConstraintViolationException' => __DIR__ . '/..' . '/../lib/Exceptions/ConstraintViolationException.php', |
|
| 47 | - 'OCA\\User_LDAP\\Exceptions\\NoMoreResults' => __DIR__ . '/..' . '/../lib/Exceptions/NoMoreResults.php', |
|
| 48 | - 'OCA\\User_LDAP\\Exceptions\\NotOnLDAP' => __DIR__ . '/..' . '/../lib/Exceptions/NotOnLDAP.php', |
|
| 49 | - 'OCA\\User_LDAP\\FilesystemHelper' => __DIR__ . '/..' . '/../lib/FilesystemHelper.php', |
|
| 50 | - 'OCA\\User_LDAP\\GroupPluginManager' => __DIR__ . '/..' . '/../lib/GroupPluginManager.php', |
|
| 51 | - 'OCA\\User_LDAP\\Group_LDAP' => __DIR__ . '/..' . '/../lib/Group_LDAP.php', |
|
| 52 | - 'OCA\\User_LDAP\\Group_Proxy' => __DIR__ . '/..' . '/../lib/Group_Proxy.php', |
|
| 53 | - 'OCA\\User_LDAP\\Handler\\ExtStorageConfigHandler' => __DIR__ . '/..' . '/../lib/Handler/ExtStorageConfigHandler.php', |
|
| 54 | - 'OCA\\User_LDAP\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php', |
|
| 55 | - 'OCA\\User_LDAP\\IGroupLDAP' => __DIR__ . '/..' . '/../lib/IGroupLDAP.php', |
|
| 56 | - 'OCA\\User_LDAP\\ILDAPGroupPlugin' => __DIR__ . '/..' . '/../lib/ILDAPGroupPlugin.php', |
|
| 57 | - 'OCA\\User_LDAP\\ILDAPUserPlugin' => __DIR__ . '/..' . '/../lib/ILDAPUserPlugin.php', |
|
| 58 | - 'OCA\\User_LDAP\\ILDAPWrapper' => __DIR__ . '/..' . '/../lib/ILDAPWrapper.php', |
|
| 59 | - 'OCA\\User_LDAP\\IUserLDAP' => __DIR__ . '/..' . '/../lib/IUserLDAP.php', |
|
| 60 | - 'OCA\\User_LDAP\\Jobs\\CleanUp' => __DIR__ . '/..' . '/../lib/Jobs/CleanUp.php', |
|
| 61 | - 'OCA\\User_LDAP\\Jobs\\Sync' => __DIR__ . '/..' . '/../lib/Jobs/Sync.php', |
|
| 62 | - 'OCA\\User_LDAP\\Jobs\\UpdateGroups' => __DIR__ . '/..' . '/../lib/Jobs/UpdateGroups.php', |
|
| 63 | - 'OCA\\User_LDAP\\LDAP' => __DIR__ . '/..' . '/../lib/LDAP.php', |
|
| 64 | - 'OCA\\User_LDAP\\LDAPProvider' => __DIR__ . '/..' . '/../lib/LDAPProvider.php', |
|
| 65 | - 'OCA\\User_LDAP\\LDAPProviderFactory' => __DIR__ . '/..' . '/../lib/LDAPProviderFactory.php', |
|
| 66 | - 'OCA\\User_LDAP\\LDAPUtility' => __DIR__ . '/..' . '/../lib/LDAPUtility.php', |
|
| 67 | - 'OCA\\User_LDAP\\Mapping\\AbstractMapping' => __DIR__ . '/..' . '/../lib/Mapping/AbstractMapping.php', |
|
| 68 | - 'OCA\\User_LDAP\\Mapping\\GroupMapping' => __DIR__ . '/..' . '/../lib/Mapping/GroupMapping.php', |
|
| 69 | - 'OCA\\User_LDAP\\Mapping\\UserMapping' => __DIR__ . '/..' . '/../lib/Mapping/UserMapping.php', |
|
| 70 | - 'OCA\\User_LDAP\\Migration\\GroupMappingMigration' => __DIR__ . '/..' . '/../lib/Migration/GroupMappingMigration.php', |
|
| 71 | - 'OCA\\User_LDAP\\Migration\\RemoveRefreshTime' => __DIR__ . '/..' . '/../lib/Migration/RemoveRefreshTime.php', |
|
| 72 | - 'OCA\\User_LDAP\\Migration\\SetDefaultProvider' => __DIR__ . '/..' . '/../lib/Migration/SetDefaultProvider.php', |
|
| 73 | - 'OCA\\User_LDAP\\Migration\\UUIDFix' => __DIR__ . '/..' . '/../lib/Migration/UUIDFix.php', |
|
| 74 | - 'OCA\\User_LDAP\\Migration\\UUIDFixGroup' => __DIR__ . '/..' . '/../lib/Migration/UUIDFixGroup.php', |
|
| 75 | - 'OCA\\User_LDAP\\Migration\\UUIDFixInsert' => __DIR__ . '/..' . '/../lib/Migration/UUIDFixInsert.php', |
|
| 76 | - 'OCA\\User_LDAP\\Migration\\UUIDFixUser' => __DIR__ . '/..' . '/../lib/Migration/UUIDFixUser.php', |
|
| 77 | - 'OCA\\User_LDAP\\Migration\\UnsetDefaultProvider' => __DIR__ . '/..' . '/../lib/Migration/UnsetDefaultProvider.php', |
|
| 78 | - 'OCA\\User_LDAP\\Migration\\Version1010Date20200630192842' => __DIR__ . '/..' . '/../lib/Migration/Version1010Date20200630192842.php', |
|
| 79 | - 'OCA\\User_LDAP\\Migration\\Version1120Date20210917155206' => __DIR__ . '/..' . '/../lib/Migration/Version1120Date20210917155206.php', |
|
| 80 | - 'OCA\\User_LDAP\\Migration\\Version1130Date20211102154716' => __DIR__ . '/..' . '/../lib/Migration/Version1130Date20211102154716.php', |
|
| 81 | - 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154717' => __DIR__ . '/..' . '/../lib/Migration/Version1130Date20220110154717.php', |
|
| 82 | - 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154718' => __DIR__ . '/..' . '/../lib/Migration/Version1130Date20220110154718.php', |
|
| 83 | - 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154719' => __DIR__ . '/..' . '/../lib/Migration/Version1130Date20220110154719.php', |
|
| 84 | - 'OCA\\User_LDAP\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php', |
|
| 85 | - 'OCA\\User_LDAP\\PagedResults\\IAdapter' => __DIR__ . '/..' . '/../lib/PagedResults/IAdapter.php', |
|
| 86 | - 'OCA\\User_LDAP\\PagedResults\\Php73' => __DIR__ . '/..' . '/../lib/PagedResults/Php73.php', |
|
| 87 | - 'OCA\\User_LDAP\\PagedResults\\TLinkId' => __DIR__ . '/..' . '/../lib/PagedResults/TLinkId.php', |
|
| 88 | - 'OCA\\User_LDAP\\Proxy' => __DIR__ . '/..' . '/../lib/Proxy.php', |
|
| 89 | - 'OCA\\User_LDAP\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php', |
|
| 90 | - 'OCA\\User_LDAP\\Settings\\Section' => __DIR__ . '/..' . '/../lib/Settings/Section.php', |
|
| 91 | - 'OCA\\User_LDAP\\UserPluginManager' => __DIR__ . '/..' . '/../lib/UserPluginManager.php', |
|
| 92 | - 'OCA\\User_LDAP\\User\\DeletedUsersIndex' => __DIR__ . '/..' . '/../lib/User/DeletedUsersIndex.php', |
|
| 93 | - 'OCA\\User_LDAP\\User\\Manager' => __DIR__ . '/..' . '/../lib/User/Manager.php', |
|
| 94 | - 'OCA\\User_LDAP\\User\\OfflineUser' => __DIR__ . '/..' . '/../lib/User/OfflineUser.php', |
|
| 95 | - 'OCA\\User_LDAP\\User\\User' => __DIR__ . '/..' . '/../lib/User/User.php', |
|
| 96 | - 'OCA\\User_LDAP\\User_LDAP' => __DIR__ . '/..' . '/../lib/User_LDAP.php', |
|
| 97 | - 'OCA\\User_LDAP\\User_Proxy' => __DIR__ . '/..' . '/../lib/User_Proxy.php', |
|
| 98 | - 'OCA\\User_LDAP\\Wizard' => __DIR__ . '/..' . '/../lib/Wizard.php', |
|
| 99 | - 'OCA\\User_LDAP\\WizardResult' => __DIR__ . '/..' . '/../lib/WizardResult.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\User_LDAP\\Access' => __DIR__.'/..'.'/../lib/Access.php', |
|
| 26 | + 'OCA\\User_LDAP\\AccessFactory' => __DIR__.'/..'.'/../lib/AccessFactory.php', |
|
| 27 | + 'OCA\\User_LDAP\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 28 | + 'OCA\\User_LDAP\\BackendUtility' => __DIR__.'/..'.'/../lib/BackendUtility.php', |
|
| 29 | + 'OCA\\User_LDAP\\Command\\CheckUser' => __DIR__.'/..'.'/../lib/Command/CheckUser.php', |
|
| 30 | + 'OCA\\User_LDAP\\Command\\CreateEmptyConfig' => __DIR__.'/..'.'/../lib/Command/CreateEmptyConfig.php', |
|
| 31 | + 'OCA\\User_LDAP\\Command\\DeleteConfig' => __DIR__.'/..'.'/../lib/Command/DeleteConfig.php', |
|
| 32 | + 'OCA\\User_LDAP\\Command\\ResetUser' => __DIR__.'/..'.'/../lib/Command/ResetUser.php', |
|
| 33 | + 'OCA\\User_LDAP\\Command\\Search' => __DIR__.'/..'.'/../lib/Command/Search.php', |
|
| 34 | + 'OCA\\User_LDAP\\Command\\SetConfig' => __DIR__.'/..'.'/../lib/Command/SetConfig.php', |
|
| 35 | + 'OCA\\User_LDAP\\Command\\ShowConfig' => __DIR__.'/..'.'/../lib/Command/ShowConfig.php', |
|
| 36 | + 'OCA\\User_LDAP\\Command\\ShowRemnants' => __DIR__.'/..'.'/../lib/Command/ShowRemnants.php', |
|
| 37 | + 'OCA\\User_LDAP\\Command\\TestConfig' => __DIR__.'/..'.'/../lib/Command/TestConfig.php', |
|
| 38 | + 'OCA\\User_LDAP\\Configuration' => __DIR__.'/..'.'/../lib/Configuration.php', |
|
| 39 | + 'OCA\\User_LDAP\\Connection' => __DIR__.'/..'.'/../lib/Connection.php', |
|
| 40 | + 'OCA\\User_LDAP\\ConnectionFactory' => __DIR__.'/..'.'/../lib/ConnectionFactory.php', |
|
| 41 | + 'OCA\\User_LDAP\\Controller\\ConfigAPIController' => __DIR__.'/..'.'/../lib/Controller/ConfigAPIController.php', |
|
| 42 | + 'OCA\\User_LDAP\\Controller\\RenewPasswordController' => __DIR__.'/..'.'/../lib/Controller/RenewPasswordController.php', |
|
| 43 | + 'OCA\\User_LDAP\\Events\\GroupBackendRegistered' => __DIR__.'/..'.'/../lib/Events/GroupBackendRegistered.php', |
|
| 44 | + 'OCA\\User_LDAP\\Events\\UserBackendRegistered' => __DIR__.'/..'.'/../lib/Events/UserBackendRegistered.php', |
|
| 45 | + 'OCA\\User_LDAP\\Exceptions\\AttributeNotSet' => __DIR__.'/..'.'/../lib/Exceptions/AttributeNotSet.php', |
|
| 46 | + 'OCA\\User_LDAP\\Exceptions\\ConstraintViolationException' => __DIR__.'/..'.'/../lib/Exceptions/ConstraintViolationException.php', |
|
| 47 | + 'OCA\\User_LDAP\\Exceptions\\NoMoreResults' => __DIR__.'/..'.'/../lib/Exceptions/NoMoreResults.php', |
|
| 48 | + 'OCA\\User_LDAP\\Exceptions\\NotOnLDAP' => __DIR__.'/..'.'/../lib/Exceptions/NotOnLDAP.php', |
|
| 49 | + 'OCA\\User_LDAP\\FilesystemHelper' => __DIR__.'/..'.'/../lib/FilesystemHelper.php', |
|
| 50 | + 'OCA\\User_LDAP\\GroupPluginManager' => __DIR__.'/..'.'/../lib/GroupPluginManager.php', |
|
| 51 | + 'OCA\\User_LDAP\\Group_LDAP' => __DIR__.'/..'.'/../lib/Group_LDAP.php', |
|
| 52 | + 'OCA\\User_LDAP\\Group_Proxy' => __DIR__.'/..'.'/../lib/Group_Proxy.php', |
|
| 53 | + 'OCA\\User_LDAP\\Handler\\ExtStorageConfigHandler' => __DIR__.'/..'.'/../lib/Handler/ExtStorageConfigHandler.php', |
|
| 54 | + 'OCA\\User_LDAP\\Helper' => __DIR__.'/..'.'/../lib/Helper.php', |
|
| 55 | + 'OCA\\User_LDAP\\IGroupLDAP' => __DIR__.'/..'.'/../lib/IGroupLDAP.php', |
|
| 56 | + 'OCA\\User_LDAP\\ILDAPGroupPlugin' => __DIR__.'/..'.'/../lib/ILDAPGroupPlugin.php', |
|
| 57 | + 'OCA\\User_LDAP\\ILDAPUserPlugin' => __DIR__.'/..'.'/../lib/ILDAPUserPlugin.php', |
|
| 58 | + 'OCA\\User_LDAP\\ILDAPWrapper' => __DIR__.'/..'.'/../lib/ILDAPWrapper.php', |
|
| 59 | + 'OCA\\User_LDAP\\IUserLDAP' => __DIR__.'/..'.'/../lib/IUserLDAP.php', |
|
| 60 | + 'OCA\\User_LDAP\\Jobs\\CleanUp' => __DIR__.'/..'.'/../lib/Jobs/CleanUp.php', |
|
| 61 | + 'OCA\\User_LDAP\\Jobs\\Sync' => __DIR__.'/..'.'/../lib/Jobs/Sync.php', |
|
| 62 | + 'OCA\\User_LDAP\\Jobs\\UpdateGroups' => __DIR__.'/..'.'/../lib/Jobs/UpdateGroups.php', |
|
| 63 | + 'OCA\\User_LDAP\\LDAP' => __DIR__.'/..'.'/../lib/LDAP.php', |
|
| 64 | + 'OCA\\User_LDAP\\LDAPProvider' => __DIR__.'/..'.'/../lib/LDAPProvider.php', |
|
| 65 | + 'OCA\\User_LDAP\\LDAPProviderFactory' => __DIR__.'/..'.'/../lib/LDAPProviderFactory.php', |
|
| 66 | + 'OCA\\User_LDAP\\LDAPUtility' => __DIR__.'/..'.'/../lib/LDAPUtility.php', |
|
| 67 | + 'OCA\\User_LDAP\\Mapping\\AbstractMapping' => __DIR__.'/..'.'/../lib/Mapping/AbstractMapping.php', |
|
| 68 | + 'OCA\\User_LDAP\\Mapping\\GroupMapping' => __DIR__.'/..'.'/../lib/Mapping/GroupMapping.php', |
|
| 69 | + 'OCA\\User_LDAP\\Mapping\\UserMapping' => __DIR__.'/..'.'/../lib/Mapping/UserMapping.php', |
|
| 70 | + 'OCA\\User_LDAP\\Migration\\GroupMappingMigration' => __DIR__.'/..'.'/../lib/Migration/GroupMappingMigration.php', |
|
| 71 | + 'OCA\\User_LDAP\\Migration\\RemoveRefreshTime' => __DIR__.'/..'.'/../lib/Migration/RemoveRefreshTime.php', |
|
| 72 | + 'OCA\\User_LDAP\\Migration\\SetDefaultProvider' => __DIR__.'/..'.'/../lib/Migration/SetDefaultProvider.php', |
|
| 73 | + 'OCA\\User_LDAP\\Migration\\UUIDFix' => __DIR__.'/..'.'/../lib/Migration/UUIDFix.php', |
|
| 74 | + 'OCA\\User_LDAP\\Migration\\UUIDFixGroup' => __DIR__.'/..'.'/../lib/Migration/UUIDFixGroup.php', |
|
| 75 | + 'OCA\\User_LDAP\\Migration\\UUIDFixInsert' => __DIR__.'/..'.'/../lib/Migration/UUIDFixInsert.php', |
|
| 76 | + 'OCA\\User_LDAP\\Migration\\UUIDFixUser' => __DIR__.'/..'.'/../lib/Migration/UUIDFixUser.php', |
|
| 77 | + 'OCA\\User_LDAP\\Migration\\UnsetDefaultProvider' => __DIR__.'/..'.'/../lib/Migration/UnsetDefaultProvider.php', |
|
| 78 | + 'OCA\\User_LDAP\\Migration\\Version1010Date20200630192842' => __DIR__.'/..'.'/../lib/Migration/Version1010Date20200630192842.php', |
|
| 79 | + 'OCA\\User_LDAP\\Migration\\Version1120Date20210917155206' => __DIR__.'/..'.'/../lib/Migration/Version1120Date20210917155206.php', |
|
| 80 | + 'OCA\\User_LDAP\\Migration\\Version1130Date20211102154716' => __DIR__.'/..'.'/../lib/Migration/Version1130Date20211102154716.php', |
|
| 81 | + 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154717' => __DIR__.'/..'.'/../lib/Migration/Version1130Date20220110154717.php', |
|
| 82 | + 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154718' => __DIR__.'/..'.'/../lib/Migration/Version1130Date20220110154718.php', |
|
| 83 | + 'OCA\\User_LDAP\\Migration\\Version1130Date20220110154719' => __DIR__.'/..'.'/../lib/Migration/Version1130Date20220110154719.php', |
|
| 84 | + 'OCA\\User_LDAP\\Notification\\Notifier' => __DIR__.'/..'.'/../lib/Notification/Notifier.php', |
|
| 85 | + 'OCA\\User_LDAP\\PagedResults\\IAdapter' => __DIR__.'/..'.'/../lib/PagedResults/IAdapter.php', |
|
| 86 | + 'OCA\\User_LDAP\\PagedResults\\Php73' => __DIR__.'/..'.'/../lib/PagedResults/Php73.php', |
|
| 87 | + 'OCA\\User_LDAP\\PagedResults\\TLinkId' => __DIR__.'/..'.'/../lib/PagedResults/TLinkId.php', |
|
| 88 | + 'OCA\\User_LDAP\\Proxy' => __DIR__.'/..'.'/../lib/Proxy.php', |
|
| 89 | + 'OCA\\User_LDAP\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php', |
|
| 90 | + 'OCA\\User_LDAP\\Settings\\Section' => __DIR__.'/..'.'/../lib/Settings/Section.php', |
|
| 91 | + 'OCA\\User_LDAP\\UserPluginManager' => __DIR__.'/..'.'/../lib/UserPluginManager.php', |
|
| 92 | + 'OCA\\User_LDAP\\User\\DeletedUsersIndex' => __DIR__.'/..'.'/../lib/User/DeletedUsersIndex.php', |
|
| 93 | + 'OCA\\User_LDAP\\User\\Manager' => __DIR__.'/..'.'/../lib/User/Manager.php', |
|
| 94 | + 'OCA\\User_LDAP\\User\\OfflineUser' => __DIR__.'/..'.'/../lib/User/OfflineUser.php', |
|
| 95 | + 'OCA\\User_LDAP\\User\\User' => __DIR__.'/..'.'/../lib/User/User.php', |
|
| 96 | + 'OCA\\User_LDAP\\User_LDAP' => __DIR__.'/..'.'/../lib/User_LDAP.php', |
|
| 97 | + 'OCA\\User_LDAP\\User_Proxy' => __DIR__.'/..'.'/../lib/User_Proxy.php', |
|
| 98 | + 'OCA\\User_LDAP\\Wizard' => __DIR__.'/..'.'/../lib/Wizard.php', |
|
| 99 | + 'OCA\\User_LDAP\\WizardResult' => __DIR__.'/..'.'/../lib/WizardResult.php', |
|
| 100 | 100 | ); |
| 101 | 101 | |
| 102 | 102 | public static function getInitializer(ClassLoader $loader) |
| 103 | 103 | { |
| 104 | - return \Closure::bind(function () use ($loader) { |
|
| 104 | + return \Closure::bind(function() use ($loader) { |
|
| 105 | 105 | $loader->prefixLengthsPsr4 = ComposerStaticInitUser_LDAP::$prefixLengthsPsr4; |
| 106 | 106 | $loader->prefixDirsPsr4 = ComposerStaticInitUser_LDAP::$prefixDirsPsr4; |
| 107 | 107 | $loader->classMap = ComposerStaticInitUser_LDAP::$classMap; |