mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Merge pull request #177 from Icinga:fix/allow_domain_accounts_for_wmi_permissions
Fix: Allow usage for domain accounts for wmi permissions without being locally known
This commit is contained in:
commit
18f5ad8005
2 changed files with 1 additions and 7 deletions
|
|
@ -45,6 +45,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
|||
* [#165](https://github.com/Icinga/icinga-powershell-framework/pull/165) Fixes fetching for Icinga Agent certificate for REST-Api daemon on upper/lower case hostname mismatch
|
||||
* [#166](https://github.com/Icinga/icinga-powershell-framework/pull/166) Fixes fetching of Icinga Agent MSI packages by correctly comparing versions to ensure we always use the latest version and fixes `release` usage for local/network drive sources
|
||||
* [#167](https://github.com/Icinga/icinga-powershell-framework/pull/167) Fixes error while writing EventLog entries with too large message size
|
||||
* [#177](https://github.com/Icinga/icinga-powershell-framework/pull/177) Fixes Wmi permissions to allow domain accounts while not being locally known on the system
|
||||
|
||||
## 1.2.0 (2020-08-28)
|
||||
|
||||
|
|
|
|||
|
|
@ -39,13 +39,6 @@ function Get-IcingaWmiSecurityData()
|
|||
$UserSID = Get-IcingaUserSID -User $User;
|
||||
$WmiAcl = $WmiSecurityData.Descriptor;
|
||||
|
||||
$WmiAccount = Get-IcingaWindowsInformation -ClassName Win32_Account -Filter ([string]::Format("Domain='{0}' and Name='{1}'", $UserData.Domain, $UserData.User));
|
||||
|
||||
if ($null -eq $WmiAccount) {
|
||||
Write-IcingaConsoleError 'The specified user could not be found on the system: "{0}\{1}"' -Objects $UserData.Domain, $UserData.User;
|
||||
return $null;
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrEmpty($UserSID)) {
|
||||
Write-IcingaConsoleError 'Unable to load the SID for user "{0}"' -Objects $User;
|
||||
return $null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue