Skip to content

Commit

Permalink
fix: CS
Browse files Browse the repository at this point in the history
  • Loading branch information
tripleawwy committed Sep 11, 2024
1 parent 17d3f2c commit 6b6d29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ad/internal/winrmhelper/winrm_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ func unmarshallUser(input []byte, customAttributes []string) (*User, error) {
tokens := strings.Split(user.PrincipalName, "@")
if user.Username == "" {
user.Username = tokens[0]
}
}
if len(tokens) > 1 {
user.Domain = tokens[1]
}
Expand Down

0 comments on commit 6b6d29a

Please sign in to comment.