summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
Commit message (Collapse)AuthorAgeFilesLines
* Fix(l10n): Update translations from TransifexNextcloud bot2023-05-122-0/+38
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2023-05-042-0/+12
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #37903 from nextcloud/fix/user_ldap-fix-multiple-ldap-supportCôme Chilliet2023-05-023-23/+6
|\ | | | | Fix multiple LDAP configuration support by fixing AccessFactory
| * Add comment about Manager instance not being sharedCôme Chilliet2023-04-271-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Adapt Sync job tests to the constructor changeCôme Chilliet2023-04-271-2/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix multiple LDAP configuration support by fixing AccessFactoryCôme Chilliet2023-04-242-21/+4
| | | | | | | | | | | | | | It must not reuse the same OCA\User_LDAP\User\Manager instance for several Access instances. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Clear up return typesCôme Chilliet2023-04-273-6/+12
| | | | | | | | | | | | usersInGroup index by int for BC, searchInGroup index by uid (string). Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Let OC\Group\Group handle the fallback and remove default implementation ↵Côme Chilliet2023-04-271-11/+2
| | | | | | | | | | | | from ABackend Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Optimize retrieving display name when searching for users in a groupCarl Schwan2023-04-272-4/+17
| | | | | | | | | | | | | | | | | | This is recurrent scenario that we are searching for users and then for each users we fetch the displayName. This is inefficient, so instead try to do one query to fetch everything (e.g. Database backend) or use the already existing DisplayNameCache helper. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix(l10n): Update translations from TransifexNextcloud bot2023-04-262-0/+38
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2023-04-258-0/+152
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Merge pull request #36784 from nextcloud/fix/user_ldap-update-groups-fail-getDaniel2023-04-241-1/+12
|\ \ | |/ |/| Properly test and log when a group is not found
| * Properly test and log when a group is not foundCôme Chilliet2023-02-201-1/+12
| | | | | | | | | | | | | | Avoid an error about passing null instead of IGroup to the event constructor, instead skip the failed group and log the problem. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #37856 from march42/bugfix/ldap_profiledata_removedCôme Chilliet2023-04-241-12/+18
|\ \ | | | | | | removed profile data from LDAP will get removed
| * | 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>
* | | fix(assets): Optimize PNGs with optipng 0.7.7Joas Schilling2023-04-241-0/+0
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix(assets): Optimize SVGs with scour 0.38.2Joas Schilling2023-04-243-16/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2023-04-244-0/+76
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2023-04-236-16/+58
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2023-04-226-0/+114
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | chore(autoloader): Update autoloaders with composer 2.5.5Joas Schilling2023-04-213-11/+22
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #36565 from march42/feature/ldap_update_profileSimon L2023-04-206-1/+343
|\ \ | | | | | | [user_ldap] Update profile from LDAP fields
| * | 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-065-83/+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-066-56/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-066-66/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-065-10/+33
| | | | | | | | | | | | | | | 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-066-4/+64
| | | | | | | | | | | | | | | | | | | | | 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-065-0/+226
| | | | | | | | | | | | | | | | | | work-in-progress; TODO update profile Signed-off-by: Marc Hefter <marchefter@march42.net>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2023-04-202-0/+2
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2023-04-162-0/+2
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | perform exact Ldap search as well to make sure it works for attributes ↵Julien Veyssier2023-04-131-0/+5
| | | | | | | | | | | | | | | | | | without a substr matching rule Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* | | Fix(l10n): 🔠 Update translations from TransifexNextcloud bot2023-04-132-0/+2
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Fix(l10n): 🔠 Update translations from TransifexNextcloud bot2023-04-064-2/+4
|/ / | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>