aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix: Migrate all uses of OCP\Template to OCP\Template\ITemplateManagerCôme Chilliet2025-03-061-8/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: remove caching in fetchListOfGroupsDaniel Kesselberg2025-02-271-1/+1
| | | | | | | | | | | | When using nested groups without a memberof overlay, then fetchListOfGroups is called from getGroupsByMember without applying the group filter. In some setups, the "unfiltered" result is then written back to the group mapping table. That might cause random "An administrator removed you from group" activities. I was unable to replicate it locally, but we got the feedback that the random activities stopped with the patch applied. Ref: https://github.com/nextcloud/server/issues/42195 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-1314-57/+91
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Remove now unused class FilesystemHelperCôme Chilliet2025-01-135-39/+0
| | | | 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-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-212-31/+21
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-1510-24/+35
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #48223 from nextcloud/feat/add-rector-configCôme Chilliet2024-09-234-5/+5
|\ | | | | Add rector config
| * chore: Apply rector configuration to apps folderCôme Chilliet2024-09-204-5/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(users): Don't crash if disabled user is missing in the databaseartonge/fix/prevent_missing_users_from_crashing_disabled_users_searchLouis Chemineau2024-09-231-0/+2
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-197-18/+18
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-1523-279/+279
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(user_ldap): Introduce user id assigned typed events for LDAP usageCarl Schwan2024-09-102-52/+63
| | | | | | Based on work from https://github.com/nextcloud/server/pull/32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* fix(user_ldap): Fix user_ldap tests by mocking new method exists in managerCôme Chilliet2024-08-271-20/+64
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(ldap): Fix user_ldap attribute casing to fix testsCôme Chilliet2024-08-271-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-2516-249/+249
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use cache in LDAP backend's checkPasswordAkhil2024-08-161-0/+4
| | | | Signed-off-by: Akhil <akhil@e.email>
* fix(LDAP): remove unneeded dependenciesArthur Schiwon2024-08-018-69/+44
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refactor: Use `IAppConfig` for setting cron typeFerdinand Thiessen2024-06-281-9/+18
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #45573 from nextcloud/chore/noid/spdx-batch9Andy Scherzinger2024-05-3048-970/+152
|\ | | | | Add SPDX header - batch 9
| * chore: Add SPDX headerAndy Scherzinger2024-05-3048-970/+152
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* | Refactor `OC\Server::getAvatarManager` in user_ldap appAndrew Summers2024-05-302-6/+8
|/ | | | | | Refactor `OC\Server::getAvatarManager` in user_ldap app (missed one) Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-301-0/+52
| | | | | | | | | | | | | | | 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(user_ldap): Fix LDAP tests with new typingCôme Chilliet2024-04-091-18/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(user_ldap): Fix tests using wrong typesCôme Chilliet2024-04-095-15/+25
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-023-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobsCôme Chilliet2024-02-081-28/+15
|
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-081-15/+28
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* fix!: Migrate jobs away from deprecated interfacesCôme Chilliet2024-02-081-28/+15
| | | | | | BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(LDAP): ensure stored groups are formatted as simple listArthur Schiwon2023-12-201-0/+27
| | | | | | | | | With array_unique it is possible that the keys are not in sequential order but have gaps. json_encode then would store them as associative array, which later on json_decode would result in a stdClass by default. This is unexpected and would also contradict the return type hint. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-234-6/+6
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(LDAP): solve race condition reading groups of disappeared LDAP userArthur Schiwon2023-10-111-2/+85
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refactor(LDAP): pass IConfig via constructor to Group_LDAPArthur Schiwon2023-10-102-14/+12
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refactor(tests): simplify code, reduce duplicationArthur Schiwon2023-10-091-425/+257
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* test(Group LDAP): add test for getting groups of OfflineUserArthur Schiwon2023-10-091-0/+45
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge branch 'master' into fix/ldap-filter-generationAaron Dewes2023-09-201-2/+10
|\
| * Merge pull request #39128 from nextcloud/fix/35319/ldap-missing-avatarJulius Härtl2023-09-111-2/+10
| |\
| | * fix(ldap): avatar is not being fetchedArthur Schiwon2023-07-051-2/+10
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Fix testsAaron Dewes2023-08-131-2/+2
|/ / | | | | | | Signed-off-by: Aaron Dewes <aaron.dewes@protonmail.com>
* | Move UpdateGroups methods to a serviceCôme Chilliet2023-08-101-61/+33
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-271-2/+0
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #34443 from nextcloud/feat/add-enabled-user-backendCôme Chilliet2023-07-038-95/+129
|\ | | | | Add IProvideEnabledStateBackend interface
| * Fix User_Proxy tests as wellCôme Chilliet2023-05-251-1/+11
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Use DI for DeletedUsersIndex and fix testsCôme Chilliet2023-05-257-94/+118
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Refactors "strpos" calls in /apps/user_ldap to improve code readability.Faraz Samapoor2023-06-024-7/+7
|/ | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.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>
* Merge pull request #34772 from nextcloud/fix/clean-ldap-access-factory-usageCôme Chilliet2022-12-201-7/+13
|\ | | | | Make sure to use AccessFactory to create Access instances and use DI
| * Adapt test to User_Proxy constructorCôme Chilliet2022-10-251-7/+13
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fixed backup host logicCôme Chilliet2022-12-191-1/+1
| | | | | | | | | | | | | | Now forcing backup host applies to both main and background. And background will fallback to backup if not responding. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>