473,406 Members | 2,352 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.

autheticate a domain user from the web application hosted on another domain

Dear friends,

I have two domain servers X and Y.
My Asp.net Web application is hosted on Domain X.

But my scope is required to authorize the user of Domain Y on the Web application hosted on Domain X server.

I am using Windows Authetication mode in application.

Is it possible?

Regards
Jay Ramavat.
Jul 28 '10 #1
2 1407
PsychoCoder
465 Expert Mod 256MB
My first suggestion would be to use ASP.NET cookies and set the Domain property when setting the cookie.

So when they log in on server X create a cookie

Expand|Select|Wrap|Line Numbers
  1. Response.Cookies("authenticated").Value = True
  2. Response.Cookies("domain").Expires = DateTime.Now.AddDays(1)
  3. Response.Cookies("domain").Domain = "http://www.y.com"
  4.  
Then when they reach domain Y check for that cookie

Expand|Select|Wrap|Line Numbers
  1. If Not Request.Cookies("authenticated") Is Nothing Then
  2.     Dim authenticatedCookie As HttpCookie = Request.Cookies("authenticated")
  3.     If CType(authenticationCookie.Value, Boolean) Then
  4.         'Do what you need here
  5.     End If    
  6. End If
  7.  
Aug 1 '10 #2
Actually We are using Windows Server 2003 as a Domain (Active Directory) Server, and i am developing the Intranet Site.

I just want to put the windows authetication using Active directory of the Windows Server 2003.

But ASP.NET application is located on one server, and i am required to autheticate user from other Active directory of Windows 2003 server.


Thanks.
Aug 2 '10 #3

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

Similar topics

1
by: Daniel | last post by:
If i log into my computer as domain A and user X and password Y but then I need to give C# application access to domain B as user F and password G. Is this possible? or do i have to log into the...
0
by: RobinB | last post by:
We gave created a web application that uses AD for authorization and authentication. The application can be used by domain users as well as the general public. What we currently have is 2 domains...
2
by: David Olive | last post by:
Hi guys, I'm having a bit of a problem getting a VB .NET console app to run happily as a scheduled task. The app itself generates a bunch of word documents on a file share on another server by...
4
by: C#User | last post by:
hi, For the local sql server, the connection string is like: Data Source=(local);Integrated Security=SSPI;Connection Timeout=5;DataBase=northwind But for another sql server on another domain,...
5
by: Rocky | last post by:
Hi, I have a webform, with 2 textboxs and a submit button. In the text box1, i enter a username and in textbox2 I enter the computer name. Both the username and computer name is in active...
5
by: Rocky | last post by:
Hi, I have a webform, with 2 textboxs and a submit button. In the text box1, i enter a username and in textbox2 I enter the computer name. Both the username and computer name is in active...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
17
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page...
0
by: Chad Dressler | last post by:
I'm trying to use System.DirectoryServices to add a domain user to a local group via a web application which runs under the identity of a local admin account. Is this possible? I can...
2
by: nte | last post by:
Hi. I have a site where users can open their profiles and provide some personal data. On a user's button click, I want to open a new window and show some page that is hosted on another...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.