Use windows user name and password for web login - asp.net

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.

Related

Asp.net webform intranet site on IIS 10, keep ask for user and password

I've an asp.net webforms application running on our intranet (same Active Directory).
I want to auto authenticate .
So i'm using on my C# code :
HttpContext.Current.Request.LogonUserIdentity.Name
to get user name and doing some stuff.
In my web.config i'm not specifying any authentication mode.
In IIS 10.0 in default website and also in virtual directory i've
The problem is that from my development PC it works well, but from any other pc's of my organization, Windows keep continue to ask for user and password.
What can it be ?
Thanks
As far as I know, the reason why you achieve the auto authenticate for your web application is the IE security setting.
If your customer doesn't enable this setting, the IE browser will not auto send the username and password to the server to login in the user. So you will face your customer need to type in the username and password.
To solve this issue, you should suggest client side to enable the security setting to auto login in.
More details about how to enable the auto log in you could refer to below steps:
1.Open the IE and find the internet options.
2.Modify the user authentication

LDAP implementation in MVC4

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.

Pass user credentials between SharePoint web application and ASP.NET web application

I need to integrate my sharepoint site and ASP.net site. So, First login will occur in the SharePoint site with Active Directory authentication and from there i need to traverse to ASP.Net site through a link. Now my question is whether its possible to pass my SharePoint Active Directory credentials to ASP.Net site? Will i be able to do this through a query string? Will i be able to navigate to and fro between SharePoint and ASP.Net sites.
The main point here is the user should not enter his credentials twice ( ie.. He should be authenticated automatically while navigating between two sites.)
What are the options available for me?
Do these things possible to achieve? SharePoint will be hosted using Windows SharePoint Services 3.0.
Thanks in advance,
ReplyQuote
Is the ASP.NET site on the same network? If so, then you can use AD (Windows Auth) for authentication on the ASP.NET site just like you're using it on the SharePoint site. You don't need to pass the credentials, and you can't anyway since all you have is an authenticated identity. If you configure the ASP.NET site to require Windows Authentication, you'll be able to get the user's identity from the server variables (AUTH_USER).
See How to: Use Windows Authentication in ASP.NET 2.0

ASP and Windows User Logon

I want to use the Windows logon information to check if a user can use my "classic asp" site. So if the user is logon at a certain Windows Domain network he/she can enter the site and i can use this persons Windows logon information on my asp site.
I know its possible with ASP.NET but is it also possible with "classic asp", if yes, how?
Take a look at Request.ServerVariables("AUTH_USER"). I beleive that this will only have a value if anonymous authentication is turned off windows authentication is on. Heres a good reference for all the server variables: http://www.w3schools.com/asp/coll_servervariables.asp

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