microsoft / adfsToolbox

A collection of PowerShell scripts for managing AD FS
MIT License
120 stars 29 forks source link

Fix IsUserPrincipalNameFormat and add logging #70

Closed ehunter1878 closed 5 years ago

ehunter1878 commented 5 years ago

I modified IsUserPrincipalNameFormat to just check for the presence of the @ symbol in the username. The regex was too complex and was failing when the username started with a symbol.

Added logic to handle LocalSystem account.

Added logging to help diagnose failures to connect to a domain.