Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ASP.NET 5 Windows Authentication - search Active Directory users

$
0
0

We are using ASP.NET 5 windows authentication in Visual Studio 2015 web application project. We notice that the default MVC template displays the logged in user name as Domain\username using User.Identity.Name. We want to implement a user management functionality by searching a user in the AD domain and then assigning a role to that used. How do we search a user by name in AD. For example, we want to search for John Smith to make sure he exists in the domain and then assign a role to that user, how would we search for this user in AD using AP.NET windows authentication? Thanks..Nam


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>