aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Group_Proxy.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(user_ldap): Remove redundant if checkCôme Chilliet2025-01-301-3/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(user_ldap): upstream common code into Proxy class and add public ↵Côme Chilliet2025-01-301-19/+6
| | | | | | getters for backends Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-051-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-12/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-301-25/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Avoid useless reference usage in user_ldapCôme Chilliet2024-04-301-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove obsolete resource typingCôme Chilliet2024-04-091-2/+2
| | | | | | In PHP>=8.1, LDAP and FTP resources are always typed objects Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix crash of login in case of duplicated group membershipCôme Chilliet2024-01-151-1/+1
| | | | | | | If several LDAP configurations return the same group id for a user it should still only appear once in the return of getUserGroups Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* enh(LDAP): implement IIsAdmin interfaceArthur Schiwon2023-12-011-1/+6
| | | | | | | | - add configuration to specify one LDAP group acting as admin group (CLI) - implement `isAdmin()` method, basically relying on inGroup against the configured group Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #40367 from nextcloud/fix/user_ldap-update-groups-on-loginCôme Chilliet2023-10-161-0/+4
|\ | | | | Fire group membership events from LDAP at login
| * Fix LDAP LoginListener by adding new group relationships to caches before ↵Côme Chilliet2023-10-121-0/+4
| | | | | | | | | | | | firing the event Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(LDAP): solve race condition reading groups of disappeared LDAP userArthur Schiwon2023-10-111-1/+5
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | refactor(LDAP): pass IConfig via constructor to Group_LDAPArthur Schiwon2023-10-101-2/+6
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Move new methods to a new interface in OCPCôme Chilliet2023-09-051-1/+2
| | | | | | | This avoids breaking compatibility for group backends not based on ABackend abstract class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm errors about groupExists return typeCôme Chilliet2023-09-051-8/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add batch methods in user backendsCarl Schwan2023-09-051-0/+31
| | | | | | This allows for faster group search with significantly less DB traffic Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add check-group commandCôme Chilliet2023-08-101-0/+18
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Clear up return typesCôme Chilliet2023-04-271-1/+1
| | | | | | usersInGroup index by int for BC, searchInGroup index by uid (string). Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Optimize retrieving display name when searching for users in a groupCarl Schwan2023-04-271-0/+4
| | | | | | | | | This is recurrent scenario that we are searching for users and then for each users we fetch the displayName. This is inefficient, so instead try to do one query to fetch everything (e.g. Database backend) or use the already existing DisplayNameCache helper. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Make sure to use AccessFactory to create Access instances and use DICôme Chilliet2022-10-251-2/+7
| | | | 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-181-6/+29
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add ldap:reset-group command to unmap groups from LDAPCôme Chilliet2022-04-011-6/+4
| | | | 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>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Show group backends in occ group:list --info and group:infoJohannes Leuker2021-03-011-1/+11
| | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* LDAP simplify User_Proxy and Group_Proxy signaturesArthur Schiwon2020-10-231-6/+2
| | | | | | | | | - 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>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-191-6/+8
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* formattingArthur Schiwon2020-04-231-1/+17
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* don't circulate with only one backendArthur Schiwon2020-04-171-1/+7
| | | | | | | - saves some overhead costs - in some occasions saves LDAP requests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-11/+11
| | | | | | | | | | | | | | | 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>
* 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-17/+17
| | | | 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>
* group display name support (service level + ldap)Arthur Schiwon2019-05-271-1/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* User_LDAP plugins: smaller fixesVinicius Cubas Brand2017-11-031-1/+1
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* Plugins infrastructure in User_LDAPVinicius Cubas Brand2017-11-031-5/+71
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* Fix commentsMorris Jobke2017-07-251-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add repair stepsArthur Schiwon2017-02-171-0/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+2
|
* Move interface to PSR-4Joas Schilling2016-05-251-2/+0
|
* Move Proxy to PSR-4Joas Schilling2016-05-251-1/+1
|
* Move Group_LDAP and Group_Proxy to PSR-4Joas Schilling2016-05-251-0/+199