Getting Active Directory Info when using Windows Authentication?

后端 未结 4 457
温柔的废话
温柔的废话 2021-01-31 06:25

I am using Windows authentication on my asp.net MVC 3 app. Is there any way possible to get the users information out of active directory?

I know I can user User.Name.Id

4条回答
  •  我在风中等你
    2021-01-31 06:40

    Sounds like you may want to use the System.DirectoryServices namespace. Here's a guide on how you can read properties of a Directory object.

提交回复
热议问题