impacket
impacket copied to clipboard
Add error checking for an unknown samaccountname
When rbcd.py cannot determine the SamAccountName of a SID, the tool would simply fail. By adding this error checking and adding 'Unknown' for the SamAccountName, when it cannot be determined, the tool will still perform the as intended.
Thanks for the PR. Qq: in which scenario SamAccountName could not be retrieved ?
it happened when the user account t was deleted and the delegation was not removed on the object.