how to implement LDAP Authentication in Login Page using C# mvc
Loading
how to implement LDAP Authentication in Login Page using C# mvc
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Mar 16, 2023, 9:43 AM
Hello Neeraj,
Basic steps to implement LDAP authentication:
1. Add a reference to the System.DirectoryServices assembly in your project.
2. Modify the web.config file to include the following configuration settings
3. In the Login action of your controller, use the DirectoryEntry class to authenticate the user
4. Create a Login view that includes fields for the username and password.
neeraj kumarPosted Mar 16, 2023, 11:15 AM
Username will search in apache directory studio or else please explain this confusion.
& plz tell me
What to write instead of ldp://yourdomain.com
&
what will be in the connection username
Naimish MakwanaPosted Mar 16, 2023, 8:48 AM
Hello Neeraj,
Please check below link:
https://www.c-sharpcorner.com/article/ldap-access-control-for-Asp-Net/
https://nicolas.guelpa.me/blog/2017/02/15/dotnet-core-ldap-authentication.html
Thanks
Naimish Makwana