aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User_Proxy.php
Commit message (Collapse)AuthorAgeFilesLines
* feat(user_ldap): upstream common code into Proxy class and add public ↵Côme Chilliet2025-01-301-28/+12
| | | | | | getters for backends Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(updatenotification): Add a limit to user count from LDAP so save ↵Côme Chilliet2025-01-141-6/+10
| | | | | | performances Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-15/+5
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Use more gender neutral languageprovokateurin2024-10-141-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(LDAP): remove unneeded dependenciesArthur Schiwon2024-08-011-10/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: Only list remnants as disabled if option is enabledCôme Chilliet2024-06-061-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-301-28/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Also search in email field for disabled usersCôme Chilliet2024-05-231-1/+2
| | | | | | To match what is done for Database backend for enabled users Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Add back searching in disabled user listCôme Chilliet2024-05-231-2/+12
| | | | | | | | When disabled users where moved to their own endpoint we overlooked search, so adding it back. The search is done case-insensitive in uid and display name. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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-1/+1
| | | | | | In PHP>=8.1, LDAP and FTP resources are always typed objects Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Invert parameter order in getDisabledUserList to be consistentCôme Chilliet2023-11-301-1/+1
| | | | | | | This matches what was done in the calls and so fixes getting disabled user list when there are several backends returning disabled users. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Add method to list disabled users to IProvideEnabledStateBackendCôme Chilliet2023-06-291-0/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix since annotations and add boolean return type for setUserEnabledCôme Chilliet2023-06-201-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use DI for DeletedUsersIndex and fix testsCôme Chilliet2023-05-251-3/+18
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use the new IProvideEnabledStateBackend interface in user_ldapCôme Chilliet2023-05-231-6/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge branch 'master' into fix/clean-ldap-access-factory-usageCôme Chilliet2022-11-211-2/+18
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Expose mapped user count from LDAP and use that for user limit checkCôme Chilliet2022-10-241-1/+17
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix return type for countUsers methodCôme Chilliet2022-10-251-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Make sure to use AccessFactory to create Access instances and use DICôme Chilliet2022-10-251-2/+4
|/ | | | 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-2/+37
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix psalm issue about userCountsCarl Schwan2022-03-111-1/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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>
* Ignore cache in occ ldap:check-ldap commandCôme Chilliet2021-11-221-3/+2
| | | | | | | | | This avoids having to wait or reset the cache after deleting a user in the LDAP. This also fixes a PHP error when running ldap:check-ldap --update on a deleted but cached user. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix parameter types in docsJoas Schilling2021-03-171-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* LDAP simplify User_Proxy and Group_Proxy signaturesArthur Schiwon2020-10-231-10/+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-4/+6
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* formattingArthur Schiwon2020-04-231-5/+22
| | | | 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-16/+16
| | | | | | | | | | | | | | | 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-16/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* decouple userExists from userExistsOnLDAP checkArthur Schiwon2020-01-081-8/+29
| | | | | | | allows to mark users as offline right away, avoids a gap of being not a user and causing weird side effects Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* reduce adressbook change events and handlingArthur Schiwon2019-09-041-1/+1
| | | | | | ... from four to one on avatar updates Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-061-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Plugins infrastructure in User_LDAPVinicius Cubas Brand2017-11-031-3/+28
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* fix LDAP User deletion (cleanup)Arthur Schiwon2017-09-291-2/+8
| | | | | | | | | discovered a bug in the integration test which lead to following a different code path and giving a false-positive success feedback. Also listens now to the evendispatcher instead of old hook system Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix commentsMorris Jobke2017-07-251-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #1023 from GitHubUser4234/ldap_password_renew_prblizzz2017-04-241-2/+4
|\ | | | | Handle password expiry in user_ldap
| * restore ldap_password_renew_prRoger Szabo2017-03-311-2/+4
| | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* | Update comments to NextcloudMorris Jobke2017-04-111-3/+3
|/ | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* restore ldap_password_prroot2016-11-231-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de> remove notification part Signed-off-by: Roger Szabo <roger.szabo@web.de> blizzz comments Signed-off-by: Roger Szabo <roger.szabo@web.de> morris comment Signed-off-by: Roger Szabo <roger.szabo@web.de> improved error message for changing password Signed-off-by: Roger Szabo <roger.szabo@web.de> blizz comments 20161013 Signed-off-by: Roger Szabo <roger.szabo@web.de> Signed-off-by: Roger Szabo <roger.szabo@web.de> Adjust HintException usage Signed-off-by: Roger Szabo <roger.szabo@web.de> Signed-off-by: Roger Szabo <roger.szabo@web.de>
* comments amendedroot2016-07-271-1/+1
|
* New LDAPProvider for user_ldaproot2016-07-221-1/+31
|
* Fix apps/Joas Schilling2016-07-211-2/+3
|