aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Jobs
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add visibility to all properties and move static keywordChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-48/+47
| | | | | | | | | | | | | | | 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-092-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-262-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-053-4/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* make chunksize (used to check for gone LDAP users) configurableArthur Schiwon2019-11-201-6/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move log constants to ILoggerArthur Schiwon2018-04-261-13/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* DI for NC's user managerArthur Schiwon2018-04-052-2/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Do not use \OCP\DB anymoreRoeland Jago Douma2018-03-261-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>