Skip to content

Conversation

aslamovamir
Copy link
Contributor

@aslamovamir aslamovamir commented Mar 13, 2025

Description

What does this PR do?

Fixes a bug that does not properly delete users and groups by first converting their names to lowercase when case senstivity option is off. This bug was raised from community here: #29355

Added unit tests and manually tested by rerunning the commands that was run to reproduce the bug (check here for more details):
Screenshot 2025-03-13 at 4 42 57 PM

TODO only if you're a HashiCorp employee

  • Backport Labels: If this fix needs to be backported, use the appropriate backport/ label that matches the desired release branch. Note that in the CE repo, the latest release branch will look like backport/x.x.x, but older release branches will be backport/ent/x.x.x+ent.
    • LTS: If this fixes a critical security vulnerability or severity 1 bug, it will also need to be backported to the current LTS versions of Vault. To ensure this, use all available enterprise labels.
  • ENT Breakage: If this PR either 1) removes a public function OR 2) changes the signature
    of a public function, even if that change is in a CE file, double check that
    applying the patch for this PR to the ENT repo and running tests doesn't
    break any tests. Sometimes ENT only tests rely on public functions in CE
    files.
  • Jira: If this change has an associated Jira, it's referenced either
    in the PR description, commit message, or branch name.
  • RFC: If this change has an associated RFC, please link it in the description.
  • ENT PR: If this change has an associated ENT PR, please link it in the
    description. Also, make sure the changelog is in this PR, not in your ENT PR.

@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Mar 13, 2025
Copy link

github-actions bot commented Mar 13, 2025

CI Results:
All Go tests succeeded! ✅

@aslamovamir aslamovamir marked this pull request as ready for review March 13, 2025 20:44
@aslamovamir aslamovamir requested review from a team as code owners March 13, 2025 20:44
@aslamovamir aslamovamir requested a review from clemon March 13, 2025 20:44
@aslamovamir aslamovamir requested a review from divyaac March 13, 2025 20:46
Copy link

github-actions bot commented Mar 13, 2025

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@VioletHynes VioletHynes left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks :)

@aslamovamir aslamovamir merged commit fb6c833 into main Mar 14, 2025
94 of 95 checks passed
@aslamovamir aslamovamir deleted the aslamovamir-issue-29355-ldap-delete-lowercased branch March 14, 2025 16:14
@aslamovamir
Copy link
Contributor Author

Hi @stevendpclark! I just wanted to confirm, do we need to remove the tag for backport/1.18.x because the branch is blocked? Wanted to double check if we need to add it later?

@stevendpclark
Copy link
Contributor

@aslamovamir You should use the enterprise 1.18.x tag as you have, we won't be doing any more 1.18 CE releases now that 1.19 is out so effectively that branch is no longer maintained.

@aslamovamir
Copy link
Contributor Author

@aslamovamir You should use the enterprise 1.18.x tag as you have, we won't be doing any more 1.18 CE releases now that 1.19 is out so effectively that branch is no longer maintained.

Ah okay, thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants