aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Apply rector refactoringschore/deps/rector-2.0provokateurin2025-05-141-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: replace leagcy OC_Helper calls with OCP\Utilchore/oc-helper-filesizeFerdinand Thiessen2025-05-141-2/+2
| | | | | | | | - Replace legacy calls with OCP\Util - Add missing deprecation notices - Inline implementation in OCP\Util and call it from OC_Helper Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-131-3/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Remove now unused class FilesystemHelperCôme Chilliet2025-01-132-5/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Strong type User class and fix most type issuesCôme Chilliet2025-01-131-34/+26
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Always update avatar from LDAP when we have the dataCôme Chilliet2025-01-131-16/+1
| | | | | | Should be at login, in sync job, and when running ldap:check-user --update Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(user_ldap): Improve typing in user_ldap User classCôme Chilliet2025-01-131-43/+16
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(user_ldap): Rename avatar setting method to a more suited nameCôme Chilliet2025-01-131-7/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): retrieve from LDAP first "email shaped" value instead of ↵Thatoo2024-11-201-1/+8
| | | | | first value Signed-off-by: Thatoo <Thatoo@users.noreply.github.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-214-99/+36
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-153-24/+25
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Use more gender neutral languageprovokateurin2024-10-141-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-194-19/+19
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat: add profile pronounsJohn Molakvoæ (skjnldsv)2024-09-172-0/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* refactor: Use the elvis operatorChristoph Wurst2024-09-151-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-252-17/+17
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #45573 from nextcloud/chore/noid/spdx-batch9Andy Scherzinger2024-05-304-97/+14
|\ | | | | Add SPDX header - batch 9
| * chore: Add SPDX headerAndy Scherzinger2024-05-304-97/+14
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* | Merge pull request #36942 from nextcloud/unmark-login-dateJohn Molakvoæ2024-05-301-1/+6
|\ \ | |/ |/|
| * fix: php lintJohn Molakvoæ2024-05-271-1/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * unmark deleted users if their last login date is more recent than deleted dateRobin Appelman2024-05-271-1/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-302-0/+22
|/ | | | | | | | | | | | | | | 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>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-3/+3
| | | | | 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>
* Merge pull request #34443 from nextcloud/feat/add-enabled-user-backendCôme Chilliet2023-07-031-29/+22
|\ | | | | Add IProvideEnabledStateBackend interface
| * Use the new IProvideEnabledStateBackend interface in user_ldapCôme Chilliet2023-05-231-29/+22
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Refactors "strpos" calls in /apps/user_ldap to improve code readability.Faraz Samapoor2023-06-023-5/+5
|/ | | | 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-062-38/+33
| | | | | | | | | 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-062-66/+61
| | | | | | | | | 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>