How to create WindowsIdentity/WindowsPrincipal from username in DOMAIN\user format

前端 未结 4 1539
日久生厌
日久生厌 2020-12-06 05:15

The WindowsIdentity(string) constructor requires the username to be in username@domain.com format. But in my case I get the usernames from a DB in

4条回答
提交回复
热议问题