aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User/Manager.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(LDAP): inlcude ldapExpertUsernameAttr in general attribute listfix/noid/ensure-userid-attr-presentArthur Schiwon2025-04-171-0/+1
| | | | | | | | fixes corner cases in which an LDAP record might be loaded and used, where the user is still not mapped - and then this information is missing though expected. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix(user_ldap): Remove now unused class FilesystemHelperCôme Chilliet2025-01-131-3/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-24/+8
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat: add profile pronounsJohn Molakvoæ (skjnldsv)2024-09-171-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix(user_ldap): Correctly cache that user exists to avoid a request on ↵Côme Chilliet2024-08-271-2/+0
| | | | | | mapping new user Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Avoid extra LDAP request when mapping a user for the first timeCôme Chilliet2024-08-271-0/+36
| | | | | | | | Avoids using several LDAP searches to get UUID, display name and internal name, now gets all attributes at the same time. Also avoids extra request to build an unused user object in userExists. 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-26/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-301-0/+1
| | | | | | | | | | | | | | | Synced from LDAP to profile: - Date of birth Synced from LDAP to SAB (via the profile): - Biography - Date of birth Original code by Jake Nabasny (GitHub: @slapcat) Co-authored-by: Jake Nabasny <jake@nabasny.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* 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>
* 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>
* refined code, to be independend from OCP\IUserMarc Hefter2023-04-061-1/+1
| | | | | | | | | rework updateProfile in user_ldap/lib/User/User.php some cleanup at processAttributes in user_ldap/lib/User/User.php rearranged Fediverse attribute, to match profile layout Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* handling updateProfile with array of valuesMarc Hefter2023-04-061-0/+1
| | | | | | | | | using an array to buffer profile updates, like suggested by @come-nc clean some code and remove unneccessary redundancy added the Fediverse profile property Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* feature addition: [user_ldap] update user profile from LDAP; WIP; fixing ↵Marc Hefter2023-04-061-0/+1
| | | | | | | some uggly copy-and-paste errors; testing functionality; preparing and editing the documentation Signed-off-by: Marc Hefter <marchefter@march42.net> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* feature addition: [user_ldap] update user profile from LDAP; WIP ↵Marc Hefter2023-04-061-0/+8
| | | | | | work-in-progress; TODO update profile Signed-off-by: Marc Hefter <marchefter@march42.net>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-2/+2
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.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-37/+14
| | | | 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>
* Get rid of LogWrapper calling deprecated logger and use LoggerInterface from ↵Côme Chilliet2021-11-091-6/+6
| | | | | | PSR instead 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>
* user share manager to determine share ownershipArthur Schiwon2020-10-261-18/+17
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-13/+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>
* 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-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | 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>
* add LDAP ConfigHandler for external storages and "$home" varArthur Schiwon2019-02-141-0/+1
| | | | | | | | * handler registered upon OCA\\Files_External::loadAdditionalBackends event as user_ldap is loaded before files_external * new configuration field "ldapExtStorageHomeAttribute" (not in GUI yet) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensure attribute names are lower casedArthur Schiwon2019-02-141-13/+13
| | | | | | | otherwise they will be skipped when the results is being formatted and the lower-cased result keys do not match. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove app specific IUserTools and consolidate testArthur Schiwon2018-10-301-5/+5
| | | | | | | Just some house keeping. IUserTools with used in even older days for easier creation of Access instances… Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove unneeded empty search attribute values, fixes #12086Arthur Schiwon2018-10-291-0/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow admin to disable fetching of avatars as well as a specific attributeArthur Schiwon2018-07-051-4/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.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>
* move LDAP user attributes "sync" to background (except for ajax jobs)Arthur Schiwon2017-11-091-1/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* listen to deletion hooks for proper handling, adjust and add testsArthur Schiwon2017-08-311-0/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #1023 from GitHubUser4234/ldap_password_renew_prblizzz2017-04-241-12/+22
|\ | | | | Handle password expiry in user_ldap
| * restore ldap_password_renew_prRoger Szabo2017-03-311-12/+22
| | | | | | | | 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>
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Cap LDAP user cache (#25323)Jörn Friedrich Dreyer2016-07-041-13/+15
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move FilesystemHelper to PSR-4Joas Schilling2016-05-251-2/+2
|
* Move LogWrapper to PSR-4Joas Schilling2016-05-251-2/+2
|
* Move lib\user to PSR-4Joas Schilling2016-05-251-0/+238