Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Aug 2, 2024

Summary

Since former LDAP users cannot be bound to a server configuration anymore (or theoretically belong to more than one) this feature has to be config independent. This PR:

  • changes the existing logic from config-bound to app-global
  • including web interface changes
  • has a migration step to set the new values based on the old ones – one previous activation enables it for the whole LDAP backend

A backport to 28 will need further adjustments as IAppConfig was only introduced in 29.

Screenshot_20240802_181949

Checklist

@blizzz blizzz added this to the Nextcloud 30 milestone Aug 2, 2024
@blizzz blizzz requested review from a team, artonge, come-nc and yemkareems and removed request for a team August 2, 2024 16:21
@blizzz blizzz force-pushed the fix/noid/ldap-remnants-as-disabled-global branch from 65f3833 to 6a0351e Compare August 2, 2024 17:01
This was referenced Aug 5, 2024
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
@skjnldsv skjnldsv modified the milestones: Nextcloud 30, Nextcloud 31 Aug 14, 2024
@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Oct 29, 2024
@blizzz blizzz mentioned this pull request Jan 8, 2025
This was referenced Jan 14, 2025
This was referenced Jan 21, 2025
@blizzz blizzz mentioned this pull request Jan 29, 2025
1 task
@blizzz blizzz modified the milestones: Nextcloud 31, Nextcloud 32 Jan 29, 2025
@blizzz blizzz force-pushed the fix/noid/ldap-remnants-as-disabled-global branch from 6a0351e to 6876d4f Compare June 12, 2025 17:36
@blizzz blizzz requested review from a team as code owners June 12, 2025 17:36
@blizzz blizzz force-pushed the fix/noid/ldap-remnants-as-disabled-global branch 4 times, most recently from a6ebee8 to e06e762 Compare June 18, 2025 19:09
@blizzz blizzz requested a review from come-nc June 18, 2025 20:03
@blizzz blizzz added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 18, 2025
@blizzz blizzz force-pushed the fix/noid/ldap-remnants-as-disabled-global branch from e06e762 to be1f72b Compare July 16, 2025 13:52
@blizzz blizzz requested a review from come-nc July 16, 2025 13:52
blizzz added 3 commits July 16, 2025 21:55
- *ldap_mark_remnants_as_disabled were old values and removed now, after
- combining their value and storing into current
  backend_mark_remnants_as_disabled

Signed-off-by: Arthur Schiwon <[email protected]>
@blizzz blizzz force-pushed the fix/noid/ldap-remnants-as-disabled-global branch from be1f72b to 98a6a53 Compare July 16, 2025 19:55
@blizzz
Copy link
Member Author

blizzz commented Jul 16, 2025

/compile amend /

Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@nextcloud-command nextcloud-command force-pushed the fix/noid/ldap-remnants-as-disabled-global branch from 98a6a53 to 654f167 Compare July 16, 2025 20:02
}

protected function getGlobalAppValueAsBool(string $varName): bool {
static $appConfig;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the other one, static var is scary. Cache in a property or do not cache. (There is no way to reset the static var ever, while, the property can be reset by trashing the object and building a new one)

This was referenced Aug 22, 2025
This was referenced Sep 2, 2025
This was referenced Sep 25, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
@come-nc
Copy link
Contributor

come-nc commented Oct 1, 2025

@blizzz It would be nice to rebase this on the vue rewrite and remove the static vars. Then we can merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants