Solved

Using Windows Authentication to read username/password

Posted on 2011-03-07
8
221 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

785 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