Hi Folks,
I have created a NuGet package for .NET applications, using which, we can implement the LDAP\domain authentication.
Pre-requisite
- .NET Framework 4.5
How to use in the project
- Install nuGet package offline
- Create a new project.
- Add this package from NuGet Manager.
- It will add the required settings in configuration file of the project.
- Here is the sample code to use the library.
- static void Main(string[] args) {
- Console.WriteLine($ "Please enter userId...");
- var userName = Console.ReadLine();
- Console.WriteLine($ "Please enter password...");
- var password = Console.ReadLine();
- var user = new ActiveDirectoryHelper().AuthenticateUser(userName, password);
- if (user != null) {
- Console.WriteLine($ "Display Name : {user.DisplayName}");
- }
- Console.ReadLine();
- }

Rajaram SahasranamanPosted Sep 10, 2020, 11:41 PM
Why you need Userid and Password once you logged in successfully to AD Network??
Hadshana KamalanathanPosted Jul 22, 2018, 6:37 AM
Thanks for sharing
Viknaraj ManogararajahPosted Jul 22, 2018, 1:41 AM
Nice article, thank you for sharing
Amir SalousPosted Aug 14, 2017, 1:54 PM
Where do you tell the ActiveDirectoryHelper wich active directory should it use.?
Amar PatilPosted Jul 12, 2017, 4:18 AM
Great job Sandeep. so this nuget package, is it freeware ?