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

SID - Use literal UPN value when attempting a user to SID lookup #77334

Merged
merged 1 commit into from Mar 24, 2022

Conversation

jborean93
Copy link
Contributor

SUMMARY

The code incorrectly splits the UPN into username and domain fields which does not work well when the username exceeds the sAMAccountName limits of 20 chars. By using the username as the full UPN Windows will lookup the SID value correctly.

Fixes #77316

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

Ansible.ModuleUtils.SID

@ansibot ansibot added affects_2.13 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. has_issue needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community labels Mar 23, 2022
@jborean93 jborean93 merged commit ff184b0 into ansible:devel Mar 24, 2022
@jborean93 jborean93 deleted the sid-upn branch March 24, 2022 19:01
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Mar 24, 2022
jborean93 added a commit to jborean93/ansible that referenced this pull request Mar 24, 2022
jborean93 added a commit to jborean93/ansible that referenced this pull request Mar 24, 2022
@ansible ansible locked and limited conversation to collaborators Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.13 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. has_issue support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ansible.ModuleUtils.SID.psm1: Function Convert-ToSID fails if principal has more than 20 chars
4 participants