Skip to content

Commit

Permalink
Add domain to username (rather than naked username)
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwbrown committed Jul 6, 2017
1 parent 5157f03 commit a3ae2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions process/process_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ func (p *Process) Username() (string, error) {
defer token.Close()
tokenUser, err := token.GetTokenUser()

user, _, _, err := tokenUser.User.Sid.LookupAccount("")
return user, err
user, domain, _, err := tokenUser.User.Sid.LookupAccount("")
return domain + "\\" + user, err
}

func (p *Process) Uids() ([]int32, error) {
Expand Down

0 comments on commit a3ae2ed

Please sign in to comment.