Skip to content

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

@K0nne

Description

@K0nne

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

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions