Solved

Using Windows Authentication to read username/password

Posted on 2011-03-07
8
218 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:newbieweb
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Default parameter problem in C# 3 25
.Net Web Site Password specs 2 19
Jquery autocomplete 10 17
Copy/Clone an object. 9 7
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now