Skip to content

adds ldap user:reset command - #26076

Merged
MorrisJobke merged 1 commit into
masterfrom
enh/noid/ldap-occ-user-reset
Mar 17, 2021
Merged

adds ldap user:reset command#26076
MorrisJobke merged 1 commit into
masterfrom
enh/noid/ldap-occ-user-reset

Conversation

@blizzz

Copy link
Copy Markdown
Member
  • 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
Copy Markdown
MemberAuthor

/backport to stable21

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

TIL ;)

Comment threadapps/user_ldap/lib/Command/ResetUser.php Outdated
- 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 <blizzz@arthur-schiwon.de>
@blizzz
blizzzforce-pushed the enh/noid/ldap-occ-user-reset branch from 674e262 to 1b0355fCompareMarch 17, 2021 10:24
@blizzzblizzz 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 masterMar 17, 2021
@MorrisJobke
MorrisJobke deleted the enh/noid/ldap-occ-user-reset branch March 17, 2021 13:36
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugenhancementfeature: ldap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@blizzz@ChristophWurst@skjnldsv@MorrisJobke