aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(users): Don't crash if disabled user is missing in the databasebackport/48207/stable30Louis Chemineau2024-09-231-0/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* 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>
* | Merge pull request #35231 from ↵Côme Chilliet2022-12-191-1/+1
|\ \ | | | | | | | | | | | | nextcloud/fix/user_ldap-cache-fetched-list-of-groups Cache the fetched list of groups
| * | Fix user_ldap tests now that list of groups gets cachedCôme Chilliet2022-12-191-1/+1
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / Fix job tests in updatenotification and user_ldap applicationsCôme Chilliet2022-12-051-1/+3
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #33945 from nextcloud/fix/noid/fair-use-ldapSimon L2022-10-211-1/+2
|\ | | | | LDAP to not register new users when outside of fair use or over limits
| * LDAP to no register new users when outside of fair use or over limitsArthur Schiwon2022-10-181-1/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Fix LDAP recursive nested group supportCôme Chilliet2022-10-201-15/+14
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix user_ldap testsCarl Schwan2022-10-201-8/+3
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add testing of nested group membershipCôme Chilliet2022-10-201-11/+31
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Refactor group membership listing for nested groupsCôme Chilliet2022-10-201-1/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add tests for nested groupsCôme Chilliet2022-10-201-8/+45
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-053-6/+6
| | | | | | | 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>
* Port existing server code to new interfaceCarl Schwan2022-08-081-1/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* adjust testsArthur Schiwon2022-06-281-20/+31
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove bogus expects from user_ldap testsCôme Chilliet2022-06-141-3/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove deprecated at() matcher from user_ldap testsCôme Chilliet2022-06-133-34/+27
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix user_ldap unit testsCôme Chilliet2022-04-012-10/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>