summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2022-04-14 03:32:05 +1000
committerGitHub <noreply@github.com>2022-04-13 12:32:05 -0500
commit04afeffed75800f295565ec498fa8743fe390434 (patch)
tree5279d885f4bf0aa84b75806a503f5eb35a43d37e /lib
parentdb69d93c1c6defe5590d539f1fe44670c250432b (diff)
downloadansible-04afeffed75800f295565ec498fa8743fe390434.tar.gz
SID - Use literal UPN value when attempting a user to SID lookup (#77334) (#77348)
(cherry picked from commit ff184b0815cdbf7dc222fd9d7b0cfaa93d5fe03c)
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm14
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm1 b/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm1
index 38c02cc26a..a66c6423e6 100644
--- a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm1
+++ b/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm1
@@ -44,10 +44,6 @@ Function Convert-ToSID {
$domain = $account_name_split[0]
}
$username = $account_name_split[1]
- } elseif ($account_name -like "*@*") {
- $account_name_split = $account_name -split "@"
- $domain = $account_name_split[1]
- $username = $account_name_split[0]
} else {
$domain = $null
$username = $account_name