mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix differences with devel.
This commit is contained in:
@@ -87,7 +87,7 @@ Function UserSearch
|
||||
{
|
||||
#Search by samaccountname
|
||||
$Searcher = [adsisearcher]""
|
||||
|
||||
|
||||
If ($searchDomainUPN -eq $false) {
|
||||
$Searcher.Filter = "sAMAccountName=$($accountName)"
|
||||
}
|
||||
|
||||
@@ -67,4 +67,4 @@ Remove-Item $logfile;
|
||||
|
||||
Set-Attr $result "log" $logcontents;
|
||||
|
||||
Exit-Json $result;
|
||||
Exit-Json $result;
|
||||
@@ -28,7 +28,7 @@ Function UserSearch
|
||||
$searchDomain = $false
|
||||
$searchDomainUPN = $false
|
||||
if ($accountName.Split("\").count -gt 1)
|
||||
{
|
||||
{
|
||||
if ($accountName.Split("\")[0] -ne $env:COMPUTERNAME)
|
||||
{
|
||||
$searchDomain = $true
|
||||
|
||||
@@ -66,7 +66,7 @@ options:
|
||||
- If this file or directory exists the specified src will not be extracted.
|
||||
required: no
|
||||
default: null
|
||||
author: Phil Schwartz
|
||||
author: Phil Schwartz
|
||||
'''
|
||||
|
||||
EXAMPLES = r'''
|
||||
|
||||
Reference in New Issue
Block a user