I am wanting to query active directory from ASP.net Is there a good step by step tutorial on how to do this? I am not really finding a good one that explains all the processes. I just want to display some information and possible unlock accounts, reset passwords,
etc...
I am wanting to query active directory from ASP.net Is there a good step by step tutorial on how to do this?
There are a number of ways to run a LDAP query in .NET. You can use DirectorySearcher from System.DirectoryServices or SearchRequest from System.DirectoryServices.Protocol.
There a are also a lot of code samples which show you how to implement the feature :
Member
29 Points
127 Posts
asp.net mvc active directory
Jun 21, 2019 12:24 AM|Baze72|LINK
I am wanting to query active directory from ASP.net Is there a good step by step tutorial on how to do this? I am not really finding a good one that explains all the processes. I just want to display some information and possible unlock accounts, reset passwords, etc...
Thanks,
EB
Participant
850 Points
492 Posts
Re: asp.net mvc active directory
Jun 21, 2019 05:28 AM|AddWeb Solution|LINK
Hello Baze72
Please refer below link, this is complete match your question and also have sample code in snaps so you shall easily get it your solution.
https://www.codeproject.com/Articles/1279198/Active-Directory-with-ASP-NET-MVC-NET
Thanks
All-Star
18815 Points
3831 Posts
Re: asp.net mvc active directory
Jun 21, 2019 05:32 AM|Nan Yu|LINK
Hi Baze72,
There are a number of ways to run a LDAP query in .NET. You can use DirectorySearcher from System.DirectoryServices or SearchRequest from System.DirectoryServices.Protocol. There a are also a lot of code samples which show you how to implement the feature :
https://stackoverflow.com/a/5163820/5751404
https://myjeeva.com/querying-active-directory-using-csharp.html
Best Regards,
Nan Yu