summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/AccessTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #37201 from AaronDewes/fix/ldap-filter-generationCôme Chilliet2023-10-021-2/+2
| | | Fix: Escape group names for LDAP
* Fix user_ldap tests now that list of groups gets cachedCôme Chilliet2022-12-191-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix unit testsCôme Chilliet2022-03-031-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix PHP 8.1 support for user_ldap applicationCôme Chilliet2021-12-161-1/+1
| | | | 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>
* | Get rid of LogWrapper calling deprecated logger and use LoggerInterface from ↵Côme Chilliet2021-11-091-2/+1
|/ | | | | | PSR instead Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use Psr\Log\LoggerInterface in OCA\User_LDAP\AccessCôme Chilliet2021-10-121-4/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-4/+4
| | | | | | | | | | 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>
* really use known groupsArthur Schiwon2021-01-121-0/+44
| | | | 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>
* Use query builder instead of OC_DB in user_ldapJoas Schilling2020-11-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* user share manager to determine share ownershipArthur Schiwon2020-10-261-3/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-14/+14
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use serverControls directly with LDAP calls, fixes 19127Arthur Schiwon2020-04-141-17/+17
| | | | | | | | - adapters for PHP API version to Support PHP < 7.3 - switch to pass only one base per search - cookie logic is moved from Access to API adapters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-5/+4
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-22/+22
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-14/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-9/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* check user state when fetching to avoid dealing with offline objectsArthur Schiwon2018-05-291-2/+37
| | | | | | fixes #9502 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* DI for NC's user managerArthur Schiwon2018-04-051-4/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* treat iconv issuesArthur Schiwon2018-03-051-1/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* do not create empty userid when attribute does not have allowed charsArthur Schiwon2018-03-021-0/+28
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* don't cache user, if no internal user id was retrieved/assignedArthur Schiwon2017-12-071-0/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensure that users are cached when they are retrievedArthur Schiwon2017-12-071-0/+116
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* resolve DIArthur Schiwon2017-11-091-28/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2017-11-091-6/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* don't skip updating when ajax is set as background job modeArthur Schiwon2017-11-091-4/+74
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move ldap user sync to background (WIP)Arthur Schiwon2017-11-091-91/+116
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-061-1/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* restore ldap_password_renew_prRoger Szabo2017-03-311-1/+3
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* Add testsLukas Reschke2016-11-231-0/+109
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* fix and tidy up tests after merge conflictsArthur Schiwon2016-10-131-16/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update tests for phunit 5.5Victor Dubiniuk2016-10-131-5/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* DI IConfig into ldap helperRoeland Jago Douma2016-10-101-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix the User_LDAP appJoas Schilling2016-09-121-1/+0
|
* Fix getMock user_ldapRoeland Jago Douma2016-09-061-8/+16
|
* fix a few minor code smellsJörn Friedrich Dreyer2016-08-291-0/+1
|
* New LDAPProvider for user_ldaproot2016-07-221-25/+26
|
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+1
|