Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds ldap user:reset command #26076

Merged
merged 1 commit into from
Mar 17, 2021
Merged

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Mar 11, 2021

  • allows to delete data of existing LDAP users, which otherwise is safe- guarded
  • ensures that the user is not being deleted on LDAP through a plugin
  • like user:delete all (local!) user data is deleted

This turns the double-step of flagging a user as deleted and running the user:delete routine into a single step with another safety check and without possible cache race conditions.

@blizzz
Copy link
Member Author

blizzz commented Mar 11, 2021

/backport to stable21

@blizzz
Copy link
Member Author

blizzz commented Mar 11, 2021

/backport to stable20

IUserManager $userManager,
UserPluginManager $pluginManager
) {
$this->dui = $dui;
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

TIL ;)

apps/user_ldap/lib/Command/ResetUser.php Outdated Show resolved Hide resolved
- allows to delete data of existing LDAP users, which otherwise is safe
  guarded
- ensures that the user is not being deleted on LDAP through a plugin

Signed-off-by: Arthur Schiwon <[email protected]>
@blizzz blizzz force-pushed the enh/noid/ldap-occ-user-reset branch from 674e262 to 1b0355f Compare March 17, 2021 10:24
@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 17, 2021
@MorrisJobke MorrisJobke merged commit d011df6 into master Mar 17, 2021
@MorrisJobke MorrisJobke deleted the enh/noid/ldap-occ-user-reset branch March 17, 2021 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug enhancement feature: ldap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants