aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Helper.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(user_ldap): Switch to OCP\IAppConfig and fix Helper constructor callsCôme Chilliet2025-06-101-9/+9
| | | | | | | | Using OCP\AppFramework\Services\IAppConfig is not possible because the Helper is queried from places outside of the application DI container (ajax pages, tests, other applications through ILDAPProviderFactory…) Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Store the list of used configuration prefixed in appconfigCôme Chilliet2025-06-101-36/+60
| | | | | | | This avoids getting all keys from appconfig, which was triggering loading of lazy configuration on all requests. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-131-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-6/+4
| | | | 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>
* chore: Add SPDX headerAndy Scherzinger2024-05-301-26/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* docs(LDAP): add info on stored DN formArthur Schiwon2024-04-051-0/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* 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>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-121-9/+4
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add a comment explaining how Helper::loginName2UserName can workCôme Chilliet2022-02-081-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Improve typing in OCA\User_LDAP\Access and reduce psalm errorsCôme Chilliet2022-02-081-3/+3
| | | | | | | This should avoid some PHP warning using PHP 8.1 and help detecting type trouble early in the future. 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>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-4/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate LDAP's install.php to a repair stepChristoph Wurst2020-11-271-12/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* only delete specified configArthur Schiwon2020-11-061-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Correctly place the array typeJoas Schilling2020-11-061-1/+1
|
* Use query builder instead of OC_DB in user_ldapJoas Schilling2020-11-061-27/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* LDAP simplify User_Proxy and Group_Proxy signaturesArthur Schiwon2020-10-231-23/+3
| | | | | | | | | - 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>
* Do not use custom DI object names for user_ldapMorris Jobke2020-07-131-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* formattingArthur Schiwon2020-04-231-9/+16
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* do not rerun expensive sanitizer against already processed DNsArthur Schiwon2020-04-171-4/+18
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-15/+15
| | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | 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-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* sort prefixes for deterministic LDAP query behaviourArthur Schiwon2020-02-071-3/+4
| | | | 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>
* Do not use \OCP\DB anymoreRoeland Jago Douma2018-03-261-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated and unsused methods of OCP\DBMorris Jobke2018-03-121-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-291-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-1/+1
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* ensure that users are cached when they are retrievedArthur Schiwon2017-12-071-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-061-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Plugins infrastructure in User_LDAPVinicius Cubas Brand2017-11-031-1/+3
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* fix LDAP User deletion (cleanup)Arthur Schiwon2017-09-291-1/+2
| | | | | | | | | 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>
* restore ldap_password_renew_prRoger Szabo2017-03-311-1/+2
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* LDAP OCS Api for create configArthur Schiwon2017-01-181-0/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use more IConfig and add unit testsRoeland Jago Douma2016-10-101-21/+25
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* DI IConfig into ldap helperRoeland Jago Douma2016-10-101-1/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not query data that is already in the appconfigRoeland Jago Douma2016-10-101-23/+12
| | | | | | This is already available. We better use a simple regex. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* New LDAPProvider for user_ldaproot2016-07-221-0/+65
|
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-2/+3
|
* Move Helper to PSR-4Joas Schilling2016-05-251-0/+212