aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Mapping/AbstractMapping.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-8/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(db): Correctly apply query typesGit'Fellow2024-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | fix: psalm fix: error fix: add batch fix: fatal error fix: add batch chore: add batch chore: add batch fix: psalm fix: typo fix: psalm fix: return bool fix: revert Manager
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-2/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵Joas Schilling2024-07-191-2/+2
| | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-301-23/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-131-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm spotted errors with new requirementsCôme Chilliet2023-01-021-7/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix user_ldap testsCarl Schwan2022-10-201-5/+5
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Adapt max length limit in AbstactMapping to match databaseCôme Chilliet2022-03-301-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #31421 from ↵Côme Chilliet2022-03-171-4/+1
|\ | | | | | | | | nextcloud/fix/user_ldap-fix-ldap-connection-resets user_ldap fix ldap connection resets
| * Improve typing in user_ldap to detect problems earlyCôme Chilliet2022-03-031-4/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix similar potential problems with fetchOne loopsCôme Chilliet2022-03-081-3/+3
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix ldap:update-uuidCôme Chilliet2022-02-101-2/+2
| | | | | | | | Generators cannot be iterated with while or returned by an other generator, using foreach instead. And a few other problems. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* add occ command to update UUIDs (incomplete)Arthur Schiwon2022-02-101-24/+33
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #29523 from nextcloud/fix/support-ldap-long-dnsJohn Molakvoæ2021-12-091-13/+35
|\
| * Make sure that hash function returns a stringCôme Chilliet2021-11-231-1/+6
| | | | | | | | | | | | | | The documentation says it can return false, and even if that is highly unlikely for sha256, better safe than sorry. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Put back length check to have a clear errorCôme Chilliet2021-11-231-0/+11
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Change column names to ldap_dn and ldap_dn_hash and add migrationCôme Chilliet2021-11-231-17/+17
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Support LDAP dns longer than 255 charactersCôme Chilliet2021-11-231-25/+31
| | | | | | | | | | | | | | | | | | Adds an ldap_full_dn column to store the dn, and only store a sha256 hash in the ldap_dn which is shorter and can be indexed without trouble. Migration still needs to be implemented. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Make sure mapping cache is cleared when deleting a userCôme Chilliet2021-11-221-0/+5
|/ | | | | | This avoids phantom remnants staying after user deletion Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* silence psalm false positiveArthur Schiwon2021-01-131-0/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* respect DB limits limit per statement and queryArthur Schiwon2021-01-111-6/+45
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-25/+43
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Revert "(LDAP) respect DB limits of arguments in an IN statement"Roeland Jago Douma2021-01-081-17/+5
|
* respect DB limits of arguments in a IN listArthur Schiwon2021-01-071-5/+17
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* be more clear about the conditionblizzz2020-06-161-1/+1
| | | Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com>
* getXbyY can still return false, e.g. when using ldap write supportArthur Schiwon2020-06-151-2/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* formattingArthur Schiwon2020-04-231-12/+26
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* read records from DB for lists at once, not one by one.Arthur Schiwon2020-04-171-4/+52
| | | | | | Keep a runtime cache of dn-id-mapping Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-8/+8
| | | | | | | | | | | | | | | 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>
* Use php keywords in lowercaseChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-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-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Properly escape column name in "createFunction" callMorris Jobke2018-10-161-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* LDAP backend to emit announce and revoke signals on mapping changesArthur Schiwon2018-04-051-0/+26
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move LDAP user attributes "sync" to background (except for ajax jobs)Arthur Schiwon2017-11-091-0/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add repair stepsArthur Schiwon2017-02-171-0/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Gracefully deny users or groups with too long DNsArthur Schiwon2017-01-251-0/+11
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix apps/Joas Schilling2016-07-211-1/+3
|
* Escape special characters (#25429)Aaron Wood2016-07-201-2/+4
| | | | | | | | | | | | | | | | | | * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Use correct method in the AbstractMapping class * Change the getNamesBySearch method so that input can be properly escaped while still supporting matches * Don't escape hardcoded wildcard
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move User_LDAP to PSR-4Joas Schilling2016-05-251-0/+246