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

Backport of auth/ldap: add username_as_alias configurable into release/1.8.x #14500

Merged
merged 1 commit into from Mar 15, 2022

Conversation

jasonodonnell
Copy link
Contributor

Backport

Backport of #14324 1.8.

The below text is copied from the body of the original PR.


This adds a new config parameter to the LDAP util SDK username_as_alias. A change in #11000 resulted in alias names changing, which has broken a number of users in 1.9+. Using this parameter, an operator can change alias names back.

For example, if LDAP auth was configured with no binddn or bindpass, in 1.8.8 the alias name would be:

[~] vault read identity/alias/id/66c3a58f-9a72-26cf-f5a9-438528398eb3
Key                          Value
---                          -----
...
mount_accessor               auth_ldap_6af4105c
mount_path                   auth/ldap/
mount_type                   ldap
name                         bob
namespace_id                 root

However, in 1.9.3, the same config would result in alias names like this:

[~] vault read identity/alias/id/67656061-c8d2-8379-a7a5-dfa2c89659c9
Key                          Value
---                          -----
...
mount_accessor               auth_ldap_01e39e22
mount_path                   auth/ldap/
mount_type                   ldap
name                         cn=bob,CN=Users,DC=corp,DC=example,DC=net
namespace_id                 root

@jasonodonnell jasonodonnell added this to the 1.8.10 milestone Mar 15, 2022
@jasonodonnell jasonodonnell requested a review from a team March 15, 2022 14:41
@jasonodonnell jasonodonnell merged commit ae06a8e into release/1.8.x Mar 15, 2022
@jasonodonnell jasonodonnell deleted the backport-pr-14324-1.8 branch March 15, 2022 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants