summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix PHP 8.1 support for user_ldap applicationCôme Chilliet2021-12-162-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #29470 from nextcloud/fix/translit-php8blizzz2021-11-291-7/+2
|\ | | | | Avoid use of iconv to get rid of unicode
| * Fix sanitizing regex and add a test case for uppercase in usernameCôme Chilliet2021-11-231-0/+1
| | | | | | | | | | | | | | I did not find any test data that would fail with the previous regex, but still added data with uppercase to at least test that. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Avoid use of iconv to get rid of unicodeCôme Chilliet2021-10-281-7/+1
| | | | | | | | | | | | | | | | Using iconv for translit depends upon server configuration, locale, and PHP version. Using htmlentities instead to have a consistent behavior independent of configuration. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #29610 from nextcloud/fix/user_ldap-loggerCôme Chilliet2021-11-235-17/+16
|\ \ | | | | | | Get rid of user_ldap LogWrapper and use LoggerInterface
| * | Get rid of LogWrapper calling deprecated logger and use LoggerInterface from ↵Côme Chilliet2021-11-095-17/+16
| |/ | | | | | | | | | | PSR instead Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / Test cache invalidation for AbstractMapping in test suiteCôme Chilliet2021-11-221-0/+4
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use Psr\Log\LoggerInterface in OCA\User_LDAP\AccessCôme Chilliet2021-10-122-5/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #28876 from nextcloud/fix/28653/ldap-long-user-group-idsblizzz2021-09-241-1/+30
|\ | | | | ensure that user and group IDs in LDAP's tables are also max 64chars
| * ensure that user and group IDs in LDAP's tables are also max 64charsArthur Schiwon2021-09-241-1/+30
| | | | | | | | | | | | | | | | - limitation by core tables (e.g. sharing), IDs are always 64chars - when longer group IDs were requested they are hashed (does not affect displaynames) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix caching of objectsid searchesArthur Schiwon2021-09-211-0/+32
|/ | | | | | | - store result when no name could be retrieved, too - cached value is not an array, was treated wrongly Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Migrate HintException to OCPGary Kim2021-06-302-4/+4
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Add method to read multi-value attributes from ldap.Daniel Kesselberg2021-06-161-0/+191
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0440-66/+23
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Spelling unificationValdnet2021-05-211-3/+3
| | | | | Spelling unification in Transifex. Signed-off-by: Valdnet 47037905+Valdnet@users.noreply.github.com
* Fix LDAP unit testsJoas Schilling2021-04-201-2/+2
| | | | | | | 20) OCA\user_ldap\tests\Jobs\UpdateGroupsTest::testHandleKnownGroups Trying to configure method "fetchAll" which cannot be configured because it does not exist, has not been specified, is final, or is static Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-183-21/+21
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Cache the user backend info for 300sJoas Schilling2021-02-151-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #25101 from nextcloud/fix/noid/ldap-known-groupsChristoph Wurst2021-01-291-0/+44
|\ | | | | LDAP: make actually use of batch read known groups
| * really use known groupsArthur Schiwon2021-01-121-0/+44
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | respect DB limits limit per statement and queryArthur Schiwon2021-01-111-0/+19
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Revert "(LDAP) respect DB limits of arguments in an IN statement"Roeland Jago Douma2021-01-081-19/+0
|
* respect DB limits of arguments in a IN listArthur Schiwon2021-01-071-0/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-165-3/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24402 from nextcloud/fix/24252/ldap-ingroup-memberidblizzz2020-12-151-43/+216
|\ | | | | LDAP: fix inGroup for memberUid type of group memberships
| * php-cs happynessArthur Schiwon2020-11-271-47/+47
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * add unit testsArthur Schiwon2020-11-271-0/+173
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Cancel 1 LDAP test for php8Roeland Jago Douma2020-12-071-0/+3
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Test requires the DBJoas Schilling2020-11-091-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use query builder instead of OC_DB in user_ldapJoas Schilling2020-11-064-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* adds unit test for updategroups background jobArthur Schiwon2020-10-301-0/+189
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* user share manager to determine share ownershipArthur Schiwon2020-10-268-42/+46
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fixes determining whether former user is a share ownerArthur Schiwon2020-10-261-3/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add test for active shares flagArthur Schiwon2020-10-261-0/+93
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* LDAP simplify User_Proxy and Group_Proxy signaturesArthur Schiwon2020-10-235-69/+49
| | | | | | | | | - make User_Proxy and Group_Proxy easy to instantiate - simplify dependent code - move commands to info.xml - make UpdateGroups job class non-static Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* when nesting is not enabled, the group filter can be applied right awayArthur Schiwon2020-10-191-6/+36
| | | | | | | | - helps performance, but skipping unnecessary entries - reduces reoccuring info-level log output against groups that do not qualify ("no or empty name") Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-0513-32/+32
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-1/+0
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* these code bits were part of old logic that was already refactored outArthur Schiwon2020-09-041-79/+0
| | | | | | - only references were in unit tests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-2414-6/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22199 from ↵Morris Jobke2020-08-1214-80/+80
|\ | | | | | | | | nextcloud/techdebt/noid/PHPUnit_Framework_MockObject_MockObject Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to …
| * Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-1214-80/+80
| | | | | | | | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | do not flip available state to unavailable, allow empty resultsArthur Schiwon2020-08-111-2/+20
| | | | | | | | | | | | | | | | | | - the detection relies that the first, requested result is not empty - it might be empty though – groups without members - protect switching from available to unavailable - switching the other way around was also not envisaged either Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | LDAP: shortcut in reading nested group members when IN_CHAIN is availableArthur Schiwon2020-08-111-0/+2
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Do not use custom DI object names for user_ldapMorris Jobke2020-07-137-11/+20
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #21171 from nextcloud/enh/noid/tidy-up-group-ldapMorris Jobke2020-07-061-36/+37
|\ | | | | tidy up Group_LDAP
| * tidy up Group_LDAPArthur Schiwon2020-06-081-36/+37
| | | | | | | | | | | | | | | | | | | | * remove unused method * resolve code duplication * remove usage of deprectad Util::writeLog * phpDoc updates * signature updates Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix strings being passed where arrays where expectedArthur Schiwon2020-06-243-0/+38
|/ | | | | | also brought type hints up to internal API level Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* compress some images with tinypng.comRuben Barkow-Kuder2020-05-221-0/+0
| | | | | Signed-off-by: Ruben Barkow-Kuder <github@r.z11.de> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Update license headers for 19Christoph Wurst2020-04-2915-2/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>