aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Jobs
Commit message (Collapse)AuthorAgeFilesLines
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-13/+6
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(BackgroundJobs): Adjust intervals and time sensitivitiesprovokateurin2024-10-081-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat(user_ldap): Introduce user id assigned typed events for LDAP usageCarl Schwan2024-09-101-124/+48
| | | | | | Based on work from https://github.com/nextcloud/server/pull/32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-9/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #45573 from nextcloud/chore/noid/spdx-batch9Andy Scherzinger2024-05-303-69/+9
|\ | | | | Add SPDX header - batch 9
| * chore: Add SPDX headerAndy Scherzinger2024-05-303-69/+9
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* | Refactor `OC\Server::getAvatarManager` in user_ldap appAndrew Summers2024-05-301-1/+1
|/ | | | | | Refactor `OC\Server::getAvatarManager` in user_ldap app (missed one) Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* fix(user_ldap): Improve typing and fix a var nameCôme Chilliet2024-04-301-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-3/+3
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Move UpdateGroups methods to a serviceCôme Chilliet2023-08-101-172/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add group events to UpdateGroupsCôme Chilliet2023-08-101-0/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Refactor user_ldap group membership to use flat DBCôme Chilliet2023-08-101-90/+30
| | | | | | Move away from serialized arrays. Also use a QBMapper class for the new table. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Refactors "strpos" calls in /apps/user_ldap to improve code readability.Faraz Samapoor2023-06-021-1/+1
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Merge pull request #37903 from nextcloud/fix/user_ldap-fix-multiple-ldap-supportCôme Chilliet2023-05-021-17/+2
|\ | | | | Fix multiple LDAP configuration support by fixing AccessFactory
| * Fix multiple LDAP configuration support by fixing AccessFactoryCôme Chilliet2023-04-241-17/+2
| | | | | | | | | | | | | | It must not reuse the same OCA\User_LDAP\User\Manager instance for several Access instances. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #36784 from nextcloud/fix/user_ldap-update-groups-fail-getDaniel2023-04-241-1/+12
|\ \ | |/ |/| Properly test and log when a group is not found
| * Properly test and log when a group is not foundCôme Chilliet2023-02-201-1/+12
| | | | | | | | | | | | | | Avoid an error about passing null instead of IGroup to the event constructor, instead skip the failed group and log the problem. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix types for reading and writing config valuesjld31032023-04-051-5/+5
|/ | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Use TimedJob from OCP instead of OCCôme Chilliet2022-12-051-2/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* LDAP to no register new users when outside of fair use or over limitsArthur Schiwon2022-10-182-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Port existing server code to new interfaceCarl Schwan2022-08-081-4/+4
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* simplify blizzz2022-06-281-1/+1
| | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* delete groups in chunks instead of one by oneArthur Schiwon2022-06-281-5/+11
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* cleanup LDAP's UpdateGroupsArthur Schiwon2022-06-281-41/+43
| | | | | | | | | | | | | | - TimedJob from API - DI of config - property types - throws hints in phpdoc - argument and return types - replace depracet execute() with executeStatement or -Query - a missing return statement Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix psalm errors in apps/user_ldap/lib/Jobs/CleanUp.phpCôme Chilliet2022-02-101-26/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow to log DB, redis and LDAP requests into filesJoas Schilling2021-12-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use Psr\Log\LoggerInterface where it can easily be used in user_ldapCôme Chilliet2021-10-141-15/+31
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix two mistakes in previous migration to LoggerInterface in ↵Côme Chilliet2021-10-141-1/+1
| | | | | | OCA\User_LDAP\Access Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use Psr\Log\LoggerInterface in OCA\User_LDAP\AccessCôme Chilliet2021-10-121-1/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-043-4/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-6/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix insert valuesArthur Schiwon2020-11-061-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use query builder to interact with member managementJoas Schilling2020-11-061-12/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use query builder instead of OC_DB in user_ldapJoas Schilling2020-11-062-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix potentially passing null to events where IUser is expectedArthur Schiwon2020-10-301-2/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adds unit test for updategroups background jobArthur Schiwon2020-10-301-56/+92
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* user share manager to determine share ownershipArthur Schiwon2020-10-262-21/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* LDAP simplify User_Proxy and Group_Proxy signaturesArthur Schiwon2020-10-232-83/+34
| | | | | | | | | - 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>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* switch to typed event for LDAPs user added to group caseArthur Schiwon2020-09-101-1/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate OC_Group post_removeFromGroup hook to actual event objectMorris Jobke2020-07-301-1/+10
| | | | | | | | Ref #14552 This adds a BeforeUserRemovedEvent to the LDAP backend because it was missing. It's not really before, but we don't have the before state. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not use custom DI object names for user_ldapMorris Jobke2020-07-132-3/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>