Accessing Active Directory in ASP.NET?

后端 未结 5 503
[愿得一人]
[愿得一人] 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 18:58

    You could also try including the domain in the login

    adSharepointUsers = new DirectoryEntry("LDAP://MyDomain","MyDomain/ADUser","password");
    

提交回复
热议问题