473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

pass credentials to site with Windows Authentication

I know there have been some similar posts, but I cannot determine if this is truly impossible, or just difficult.

We have a site that uses Windows Integrated Authentication, and so it pops up the windows dialog to get credentials before allowing access to the site. there is no Anonymous access on this site.

Is there any way to create a logon page on another site, and then after capturing and verifying the credentials (i'm able to do this with API calls to advapi32.dll), pass these credentials to IIS so that the user is not prompted again.

I know that once I'm prompted, as long as I don't kill the IEXPLORE.exe session, I can start new windows without being prompted (ie. with links that have target="_blank"), but once I close the initial browser, I'm prompted again.

Can I cache the credentials somehow, or can I open a new windows using a RunAs? I cannot believe this isn't possible.

The problem is that I cannot use Forms authentication becuase the web application is purchased and I don't have access all the code. The application is Altiris Helpdesk, if that helps anyone.

Thanks for any help someone can provide.

Craig
Nov 11 '08 #1
5 16343
kenobewan
4,871 Expert 4TB
Sounds like you are trying to achieve single sign on. This is usually taken as a moot point with NT Authority (windows). So here is an article that may help:
ASP.NET 2.0: Implementing Single Sign On (SSO) with Membership API
Nov 12 '08 #2
This seems to discuss asolution, but I'm not sure it will work in our situation.

As I said, we are using Windows Integrated Authentication, but our problem arises by the fact that we log into the website application with different AD credentials than we use for our desktop logon. Therefore, we are prompted for our credentials each time.

The other problem is that we don't have access to the part of the application that controls security. This is a purchased application and we can only modify certain aspects of it. I believe the security code is embedded in DLLs that I cannot change.

Therefore, the only way I can think to get around this is to do with a page what the Windows popup is doing - i.e. prompt for, validate and cache credentials. I'm able to validate the credentials using the API I mentioned before, so I just need to know how to 1) cache them for the session, or 2) pass them to the application (or IIS).

The only reasons for wanting to do this are to 1) avoid the user having to type DOMAIN\USERID in a popup (when most people don't know their domain), as well as 2) brand the logon page a little more.

I guess I'm looking for ways to pass this information during a redirect so that its not prompted in a Windows Authenticated environment.
Nov 12 '08 #3
Frinavale
9,735 Expert Mod 8TB
Usually Windows Authentication is used for Intranet applications.

In this case you should consider looking at reconfiguring your network so that only one AD is used instead of 2.

-Frinny
Dec 4 '08 #4
The problem is that we are migrating to a Single Sign On environment, and creating a new AD to support it. Users across the campus are on different ADs, but will eventually be using the one.

In the interim, I need to solve the problem where a user is logged into a machine on one AD, but the application uses credentials in another AD.
Dec 5 '08 #5
Frinavale
9,735 Expert Mod 8TB
I think you're going to have to look into impersonating the user.
Check out this article on How to use windows authentication for more details.

There are a bunch of articles there on how to implement authentication/authorization.

-Frinny
Dec 5 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
3
by: Patrick.O.Ige | last post by:
Hi folks, How can i pass credentials to windows integrated authentication. I want to use my credentials from windows authentication and pass it on to different asp.net and asp pages without having...
10
by: Will Gillen | last post by:
I have an ASP.NET application that is using Windows Integrated Authentication (IIS) (as opposed to Forms Authentication). When the user first logs into the application, IIS prompts the user for...
6
by: Kevin Yu | last post by:
is it possible to for user to click a logout button to logout and when the user want to get into the system again, the user have to login again? Kevin
1
by: sefe dery | last post by:
Hi ng, i have an Asp.net webapplication on a remote Windows Server 2003. I created on the remote server a windows account and i use the "only windows authentification" in sql server 2000. ...
4
by: John Smith | last post by:
Hey folks, I'm trying to communicate with our Exchange server using WebDav to get the User's personal contacts folder. Works fine if I hardcode their username and password (obviously not an...
3
by: tshad | last post by:
I have my windows authentication on our intranet set up as: <authentication mode="Windows"/> This works for 15 machines at work fine. Doesn't ask you to logon. It uses the logon credentials...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
0
by: =?Utf-8?B?UmljayBF?= | last post by:
I have an IIS 6 server on Windows 2003 running in an AD domain attempting to enumerate the files on another Windows 2003 server on the same domain. The code and UNC path are sound as it works if I...
8
by: jonmundsack | last post by:
I have an intranet site on my LAN which has "anonymous access" turned OFF, and "integrated Windows authentication" turned on. This allows me to access the "AUTH_USER" server variable, which I use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.