LDAP implementation in MVC4 - asp.net

I want to implement the LDAP in my MVC web Application.I dont have any knowledge about this.I just know for the time being that this is used for User Authentication using Windows domain Active Directory UserID and Password.
So please suggest me for this to implement this step by step.

If you build an Intranet site that will be hosted within your corporate network, you can use Integrated Windows Authentication which does not require to enter UserID and Password. Please see detailed tutorial regarding this topic.
If you need to use Forms Authentication (user should enter his name and password) then see this MSDN article.

Related

Use windows user name and password for web login

I am new to industrial automation development. I am working on simens. And currently, I want to use windows login user name and password for website login using asp.net. let me know if it is possible or not. If yes then how? I will be very thank full to all who answered.
I want to use windows login user name and password for website login using asp.net.
Sure. Here's the docs
ASP.NET Integrated Windows Authentication
This uses IIS's Windows Authentication which uses NTLM/Kerberos.

Simple login/security for an Azure asp.net site (without db)?

I have a demo site that requires a simple login security similar to basic authenication. When a url is entered, a login popups and prompts for username/password. Unfortunately, basic authentication is not available in Azure. Something that requires very little code and I can just store my username/password in the webconfig.
First, basic authentication is always customizable, it doesn't necessary mean that Windows accounts are used. You can pretty much plug your custom membership provider here, as I've blogged once:
http://www.wiktorzychla.com/2013/11/basic-authentication-module-with-custom.html
Second, using forms authentication with a custom membership provider is always a simple option. In your provider, passwords can be read from anywhere.

digest authentication with custom login

I am working on a project of developing a web UI. The project requires .NET implementation. I currently published the website on Windows server 2008 with IIS 7.5 for testing. The project asks for and login/out page as the entrance to the main UI. The login/out page should asks for username and password with some security questions. And it also enables user to change and save the password. The authentication technique has to be implemented using digested authentication.
I have already tested the digest authentication after enabling it in IIS. It works good with popping up a window asking for the username and password.However, I have a doubt whether the digest authentication allows for customized login/out page and ability of changing and saving the password (which will most likely be realized with form authentication to the best of my knowledge). I believe there might be (or not?) some ways of doing it, anyone can guide me to some references or sample codes?
Try this article: http://www.eggheadcafe.com/articles/20030701.asp
And maybe this one: http://msdn.microsoft.com/en-us/library/Ee817643%28pandp.10%29.aspx

Has anyone written or used a Asp.NET membership provider that integrates with Facebook Connect?

I'm looking to allow Facebook Connect logins on my site, but still want to capture some user information and store it in the Profile object. Would also like to allow standard login/pass authentication, with an option to link it to your Facebook account. Much like the way many sites handle Facebook Connect...
I'm wondering if someone has something pre-written (aside from the Facebook Toolkit on CodePlex) specifically for Asp.NET Membership integration with Facebook Connect.
Related questions on StackOverflow:
Facebook Connect Integration with a site using ASP.NET Membership Provider
Facebook Connect and ASP.NET
An open source provider:
http://fbmembership.codeplex.com/

ASP.NET Windows Authentication Impersonation

I am trying to figure out how to implement an ASP.NET page with Windows Authentication without getting that annoying IIS login box.
I currently have 3 domains in my network so all the people logging in would have to prefix their user names with the domain. This is not user friendly. I would like to have a custom login page that would have a domain combo box.
Most examples I found implement this using Form security, however I need Windows Authentication since I want to connect to the SQL server using Integrated Authentication rather than a hard coded user name and password.
Does anyone know of a good article or sample code that shows how to implement this?
The following links to an article that explains how to authenticate a windows user using forms authentication, it uses a call to the native win32 api function LogonUser to acheive this. This way you can design your own custom login page with a drop down list to select a domain. Take a look, perhaps it will help.
Windows Authentication using Form Authentication
To get this setup so you don't have the authentication prompt, you are going to need to have the domains trust the accounts from one another. This article should get you pointed in the right direction:
http://technet.microsoft.com/en-us/library/cc787646%28WS.10%29.aspx

Resources