Accessing Active Directory in ASP.NET?

后端 未结 5 557
[愿得一人]
[愿得一人] 2021-02-04 18:36

I use a console application to write some test code:

    /// 
    /// Returns AD information for a specified userID.
    /// 
    /         


        
5条回答
  •  無奈伤痛
    2021-02-04 19:12

    Yes. You need to give it a directory connection string. A console app (running as you) runs with your credentials, including directory access. An ASP.NET app runs with the ASPNET user's credentials, which are local to the system the app is running on, not directory-global.

提交回复
热议问题