Skip to content

Commit e655561

Browse files
authored
Merge pull request #702 from Icinga:fix/director_self_service_service_user
Fix: Icinga Director Self-Service API is ignoring service user Fixes an issue with Icinga Director Self-Service API, which ignored the defined service user and didn't apply it to the configuration
2 parents 751e17f + 94ec30a commit e655561

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
2020
* [#685](https://github.com/Icinga/icinga-powershell-framework/pull/685) Fixes an issue while trying to stop the JEA process in certain cases, which results in an error during installation but has no other effect on the environment
2121
* [#686](https://github.com/Icinga/icinga-powershell-framework/pull/686) Fixes certutil error handling and message output in case the icingaforwindows.pfx could not be created
2222
* [#687](https://github.com/Icinga/icinga-powershell-framework/pull/687) Fixes Icinga for Windows port handling on installation, which will now use the proper defined port for communicating with the Icinga CA
23+
* [#702](https://github.com/Icinga/icinga-powershell-framework/pull/702) Fixes an issue with Icinga Director Self-Service API, which ignored the defined service user
2324

2425
### Enhancements
2526

lib/core/installer/menu/installation/director/DirectorTemplate.psm1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
117117
$Ticket = '';
118118
$DirectorHostRegister = (Get-IcingaForWindowsInstallerStepSelection -InstallerStep 'Show-IcingaForWindowsManagementConsoleInstallationDirectorRegisterHost');
119119

120+
if ([string]::IsNullOrEmpty($ServiceUserName)) {
121+
$ServiceUserName = 'NT Authority\NetworkService';
122+
}
123+
120124
if ($null -eq $DirectorHostRegister) {
121125
$DirectorHostRegister = 0;
122126
}
@@ -245,6 +249,7 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
245249
}
246250

247251
Show-IcingaForWindowsInstallationMenuEnterIcingaCAServer -Automated -Value $MasterAddress;
252+
Show-IcingaForWindowsInstallationMenuEnterIcingaAgentUser -Automated -Value $ServiceUserName;
248253

249254
Show-IcingaForWindowsInstallerMenuSelectCertificate -Automated -DefaultInput '1';
250255
Show-IcingaForWindowsInstallerMenuEnterIcingaTicket -Automated -Value $Ticket;

0 commit comments

Comments
 (0)