Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-IcingaAgentServiceUser fails for parameter -user with format user@domain #623

Closed
K0nne opened this issue May 19, 2023 · 1 comment · Fixed by #625
Closed

Set-IcingaAgentServiceUser fails for parameter -user with format user@domain #623

K0nne opened this issue May 19, 2023 · 1 comment · Fixed by #625
Assignees
Labels
Enhancement New feature or request
Milestone

Comments

@K0nne
Copy link

K0nne commented May 19, 2023

Set-IcingaAgentServiceUser fails if the user is defined in the format user@domain, which is a valid format.
In this case the prefix '.\' is added, which breaks the service:

image

Expected Behavior

Set-IcingaAgentServiceUser -User user@domain -SetPermission
[..]
[Notice]: Service User "user@domain" for service "icinga2" successfully updated

Current Behavior

The '.\'-Prefix is wrong in this case.

Set-IcingaAgentServiceUser -User user@domain -SetPermission
[..]
[Notice]: Service User ".\user@domain" for service "icinga2" successfully updated

Possible Solution

Dont add the prefix '.\' in case of the format user@domain.

Context

Your Environment

Framework: 1.10.1
PS: 5.1

@LordHepipud LordHepipud self-assigned this May 22, 2023
@LordHepipud LordHepipud added Bug There is an issue present Enhancement New feature or request and removed Bug There is an issue present labels May 22, 2023
@LordHepipud LordHepipud added this to the v1.11.0 milestone May 22, 2023
@LordHepipud
Copy link
Collaborator

icinga> Set-IcingaServiceUser -User 'NT Authority\NetworkService'
[Notice]: Service User "NT Authority\NetworkService" for service "icinga2" successfully updated

icinga> Set-IcingaServiceUser -User 'NetworkService@NT Authority'
[Notice]: Service User "NT Authority\NetworkService" for service "icinga2" successfully updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants