aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User/User.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Update apps/user_ldap/lib/User/User.phpMarcel Klehr2023-09-291-1/+1
| | | | Co-authored-by: Arthur Schiwon <blizzz@arthur-schiwon.de> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* LDAP: Increase profile picture limit to 512Marcel Klehr2023-09-291-1/+1
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Remove deprectated ILogger uses from user_ldap applicationCôme Chilliet2023-09-191-31/+18
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(LDAP): add return type hint and descriptionArthur Schiwon2023-07-071-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix(ldap): avatar is not being fetchedArthur Schiwon2023-07-051-1/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Refactors "strpos" calls in /apps/user_ldap to improve code readability.Faraz Samapoor2023-06-021-3/+3
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* code stylingMarc Hefter2023-04-241-5/+5
| | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@march42.net>
* Update apps/user_ldap/lib/User/User.phpMarc Hefter2023-04-241-1/+1
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@march42.net>
* removed profile data from LDAP will get removedMarc Hefter2023-04-211-12/+18
| | | | | | | | If attribute mapping is configured and no value present in LDAP, the according profile field is emptied. Removing an attribute e.g. phone from LDAP will cause the phone number being removed from profile. Signed-off-by: Marc Hefter <marchefter@gmail.com>
* optimized handling of user profile data changeMarc Hefter2023-04-141-1/+23
| | | | | | | Check profile data checksum before updating user profile, to ensure data has changed. Write checksum to user settings and cache. Signed-off-by: Marc Hefter <marchefter@gmail.com>
* error handling in update profile from LDAPMarc Hefter2023-04-111-1/+7
| | | | | | added error message on InvalidArgumentException Signed-off-by: Marc Hefter <marchefter@gmail.com>
* trying to make github-code-scanning bot happyMarc Hefter2023-04-061-2/+3
| | | | Signed-off-by: Marc Hefter <marchefter@gmail.com>
* added simple data conversion for LDAP attributesMarc Hefter2023-04-061-7/+19
| | | | Signed-off-by: Marc Hefter <marchefter@gmail.com>
* handling, formatting of postalAddress attribute syntaxMarc Hefter2023-04-061-24/+39
| | | | | | | | | replace '$' with ', ' delimiter for address property reformatted some code to 80 column early check and return, if wasRefreshed('profile') removed FIXMEs after digging and double checking Signed-off-by: Marc Hefter <marchefter@gmail.com>
* nice up the code handling AccountManagerMarc Hefter2023-04-061-65/+66
| | | | | | | | | | | merging defaultScopes from DEFAULT_SCOPES and account_manager.default_property_scope removing unneccessary profileScope setting (using config.php instead) honoring admin choice 'profile.enabled'=>false in config.php moved checking for empty array to updateProfile function corrected some typos and cleaned some comments Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* refined code, to be independend from OCP\IUserMarc Hefter2023-04-061-37/+32
| | | | | | | | | 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>
* fixing Psalm messagesMarc Hefter2023-04-061-8/+8
| | | | Signed-off-by: Marc Hefter <marchefter@gmail.com>
* handling updateProfile with array of valuesMarc Hefter2023-04-061-66/+60
| | | | | | | | | 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>
* CleanUp: removed redundant storing profile attributes in user settingsMarc Hefter2023-04-061-2/+0
| | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com Signed-off-by: Marc Hefter <marchefter@gmail.com>
* CleanUp: removed redundant condition if blockMarc Hefter2023-04-061-4/+1
| | | | Signed-off-by: Marc Hefter <marchefter@gmail.com>
* CleanUp: tidy checking for empty profileScopeMarc Hefter2023-04-061-1/+1
| | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* Fix: Parameter $scope has no provided typeMarc Hefter2023-04-061-4/+3
| | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@march42.net> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* CleanUp: remove unneeded UNSET, to unclutter codeMarc Hefter2023-04-061-7/+0
| | | | | Signed-off-by: march42 <marchefter@gmail.com> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* cleanup: removed unnecessary imports of IAccountManager, AccountManager, ↵Marc Hefter2023-04-061-4/+1
| | | | | | | IDBConnection Signed-off-by: Marc Hefter <marchefter@march42.net> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* fixed error: Array to string conversion at user_ldap/lib/User/User.php#639Marc Hefter2023-04-061-1/+1
| | | | | Signed-off-by: Marc Hefter <marchefter@march42.net> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* bugfix: changed forgotten userName, to getUsernameMarc Hefter2023-04-061-2/+2
| | | | | Signed-off-by: Marc Hefter <marchefter@march42.net> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* added user profile scope settingMarc Hefter2023-04-061-10/+15
| | | | | Signed-off-by: Marc Hefter <marchefter@march42.net> Signed-off-by: Marc Hefter <marchefter@gmail.com>
* feature addition: [user_ldap] update user profile from LDAPMarc Hefter2023-04-061-20/+22
| | | | | 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; fixing ↵Marc Hefter2023-04-061-4/+35
| | | | | | | 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/+96
| | | | | | work-in-progress; TODO update profile Signed-off-by: Marc Hefter <marchefter@march42.net>
* Fix types for reading and writing config valuesjld31032023-04-051-2/+2
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Fix unit testsCôme Chilliet2022-03-031-4/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix PHP 8.1 support for user_ldap applicationCôme Chilliet2021-12-161-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move back logger to protected in OCA\User_LDAP\User\UserCôme Chilliet2021-11-231-1/+1
| | | | | | It was changed to private because of a bad copy/paste. 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-21/+13
| | | | | | PSR instead Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* use specific email getter where necessaryArthur Schiwon2021-09-091-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* 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-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-11/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* these code bits were part of old logic that was already refactored outArthur Schiwon2020-09-041-53/+0
| | | | | | - only references were in unit tests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use serverControls directly with LDAP calls, fixes 19127Arthur Schiwon2020-04-141-2/+2
| | | | | | | | - adapters for PHP API version to Support PHP < 7.3 - switch to pass only one base per search - cookie logic is moved from Access to API adapters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-50/+48
| | | | | | | | | | | | | | | 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-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph 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/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* single squashed commit for bug fixPhilipp Staiger2020-03-261-28/+26
| | | | Signed-off-by: Philipp Staiger <philipp@staiger.it>