Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Using Windows Authentication to read username/password

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
newbieweb
Asked:
newbieweb
  • 4
  • 4
4 Solutions
 
Carl TawnSystems and Integration DeveloperCommented:
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
 
newbiewebAuthor Commented:
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
 
Carl TawnSystems and Integration DeveloperCommented:
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
newbiewebAuthor Commented:
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
 
Carl TawnSystems and Integration DeveloperCommented:
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
 
newbiewebAuthor Commented:
We are all hooked into the one domain, since this is an internal website. Will they still see a standard Windows login box?
0
 
Carl TawnSystems and Integration DeveloperCommented:
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
 
newbiewebAuthor Commented:
Thanks.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now