19 Commits

Author SHA1 Message Date
Pavel Balashou e78b12a51e [#62107] Fix specs. Add openjdk to backend image.
- Add openjdk to backend image.
  It is required to sping up test LDAP server in specs.
  https://github.com/NUARIG/ladle
2025-06-30 17:50:39 +02:00
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Oliver Günther 1f112eb94d Adapt account controller so that we can find existing, but e.g, locked users 2024-02-06 16:08:51 +01:00
Oliver Günther 7a09676adc Update users using their LDAP attributes when logging in 2024-02-06 16:05:58 +01:00
Dombi Attila 9fbe0729b8 Remove the default admin shared context as it is not necessary. 2023-11-01 15:04:45 +02:00
Dombi Attila fbb2844069 [#50208] Disabling the default admin user is possible via a system user (#14057)
* [#50208] When disabling the default `admin` user, after an update two `admin` users exists in the database.

https://community.openproject.org/work_packages/50208

* fix specs
2023-11-01 08:29:36 +01:00
Oliver Günther e32d2d0058 Remove AuthSource base namespace, model 2023-07-27 08:16:43 +02:00
Christophe Bliard 4c2a9d0aa8 Enable RSpec zero monkey patching mode
The plan for RSpec 4.0 is to disable monkey patching.

See https://github.com/rspec/rspec-core/blob/main/features/configuration/zero_monkey_patching_mode.feature for details.
2023-05-31 19:22:29 +02:00
Christophe Bliard 9e865b4f7b lint: Run rubocop safe autocorrect
Command is `rubocop --safe --autocorrect app lib lib_static modules spec`
2023-03-09 10:25:57 +01:00
Christophe Bliard aa23106c11 lint: autocorrect RSpec/FactoryBot/ConsistentParenthesesStyle
command is

    rubocop -A --only RSpec/FactoryBot/ConsistentParenthesesStyle modules spec
2023-03-07 15:04:32 +01:00
Oliver Günther 3f53f15694 Disable user sync status by default
The newly introduced user status synchronization is enabled by default, and has resulted in a lot of customer complaints due to users reactivating by themselves.

As it seems to be an edge case to activate/deactivate users based on presence in the LDAP, we should make this functionality opt-in.

https://community.openproject.org/wp/43561
2022-08-09 21:30:56 +02:00
Christophe Bliard 48a4f1b6ad lint with rubocop --autocorrect (safe cops only) 2022-06-02 10:40:10 +02:00
Oliver Günther d04478b4d3 Provide a way to disable user status syncing in LDAP user sync
https://community.openproject.org/work_packages/42485
2022-05-23 08:35:27 +02:00
Oliver Günther ffdf1caf0d Correctly skip user admin mapping when syncing users
The admin flag was returned as false even if the admin attribute was not
set.

https://community.openproject.org/wp/42396
2022-05-17 11:06:02 +02:00
Oliver Günther c991d6771c Readd the two removed rake tasks as services
They were broken so I removed them. But instead of removing import
functionality, I decided to re-add them and fix them.
2022-03-31 12:05:43 +02:00
Oliver Günther 22cf9ea47c Add LDAP user synchronization job 2022-03-31 09:46:21 +02:00