Solved

Using Windows Authentication to read username/password

Posted on 2011-03-07
8
222 Views
Last Modified: 2012-06-27
I am trying to configure Single Sign-On so the user does not need to log onto our second website, since we are trying to make it look like its part of one big site. So I hope to use Windows Authentication but need to read the username and password. I would use that username to populate the username field on the login screen for our primary website and to auto login the user into the second website.

Please show what I need to configure for an ASP.NET website to read the Windows Login?

Thanks,
newbieweb
0
Comment
Question by:newbieweb
  • 4
  • 4
8 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 35056919
Are both sites using Windows Authentication? If they are you shouldn't need to pass anything as they will both use the credentials of the user accessing the site.
0
 

Author Comment

by:newbieweb
ID: 35056971
No, the main site uses Forms Authentication and the second uses no Authentication. I need to get the code needed to use Windows Authentication.
0
 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 500 total points
ID: 35057029
Well you can forward the username to the other site easily enough, but you can't forward the password because it isn't available to you. Windows stores passwords as a hash value, so you would still need the user to enter their password in order to manually validate it against AD.
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 

Author Comment

by:newbieweb
ID: 35057078
But with Windows Authentication, am I prevented from having users log into my website from anoother person's system? If so, then Windows Authentication will not work for me.

0
 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 500 total points
ID: 35057100
Not if they are a valid domain user. If you try to access a site using Windows Authentication from a machine that isn't on the domain then they will be prompted with a standard windows login box prompting them to enter their windows credentials.
0
 

Author Comment

by:newbieweb
ID: 35057128
We are all hooked into the one domain, since this is an internal website. Will they still see a standard Windows login box?
0
 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 500 total points
ID: 35057154
If you use Windows Authentication for the site and the user is attempting to access the site from a machine that is not on the domain then yes. Anybody who accesses the site from within the domain should get logged on automatically, without any prompting.
0
 

Author Closing Comment

by:newbieweb
ID: 35100483
Thanks.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server Connection String through a VPN 8 55
Help with error in Query 2 31
SSRS Deployment problem 5 65
Amazon S3 Images with .Net 3 15
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question