SharpHound icon indicating copy to clipboard operation
SharpHound copied to clipboard

User Name is Not Representive of the AD Object

Open McBartok opened this issue 2 years ago • 0 comments

I am not sure if I missing something, but it seems that the user name value is not a true representation of what is in AD and that the value is derived from the distinguishedName and/or sAMAccountName account and domain name.

SharpHound.exe --collectionmethods All,GPOLocalGroup --domain TestDom.corp --prettyprint --collectallproperties

image

As can be seen above the name assigned is "[email protected]", but this is not anywhere in the AD and should ideally be the value of the UPN "[email protected]".

image

So the tl;dr is should the user name not be the userPrincipalName (UPN) as this is more representative of what is in AD?

McBartok avatar Jul 07 '23 11:07 McBartok