mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
SID - Use literal UPN value when attempting a user to SID lookup (#77334)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Ansible.ModuleUtils.SID - Use user principal name as is for lookup in the ``Convert-ToSID`` function - https://github.com/ansible/ansible/issues/77316
|
||||
@@ -49,11 +49,6 @@ Function Convert-ToSID {
|
||||
}
|
||||
$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
|
||||
|
||||
Reference in New Issue
Block a user