Re: Getting Logged in Windows user name
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 02/05/05
- Next message: J: "get domain user login info. from another web server"
- Previous message: Joe: "Re: Getting Logged in Windows user name"
- In reply to: Joe: "Re: Getting Logged in Windows user name"
- Next in thread: Richard L Rosenheim: "Re: Getting Logged in Windows user name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 4 Feb 2005 22:50:24 -0600
I think you are going to need to provide some sort of login facility in your
app itself, especially if it will be using credentials that are different
from what the currently logged in user on the local machine is using. I
don't see how you could get the credentials the user used to sign in to IIS.
Besides, it is possible that they are running the application locally
without using the URL anyway, so you'd need to cover both bases anyway.
Maybe someone else has another idea, but I think that's what you are going
to have to do.
To do the actual authentication, perhaps you can just stick a web service on
the IIS box too and pass credentials through it in your proxy client (use
the Credentials property)? That way, at least you are leveraging IIS to do
the actual authentication and aren't writing your own auth code. The web
service wouldn't do anything but return "true" or something trivial and
you'd just trap the 401 exception in your code to see if the authentication
failed.
Joe K.
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:e1t$nLzCFHA.3232@TK2MSFTNGP09.phx.gbl...
> you got what I want to do but it doesn't seem I can get the user from the
> hosting machine.
>
> Here's what I'm trying to do:
>
> I want the user to have to login to run the application and I need that
> application to retrieve the users' login information. I could create a
> login
> screen as part of the application but I'm trying to avoid that. I would
> rather have IIS/Windows handle the authentication.
>
- Next message: J: "get domain user login info. from another web server"
- Previous message: Joe: "Re: Getting Logged in Windows user name"
- In reply to: Joe: "Re: Getting Logged in Windows user name"
- Next in thread: Richard L Rosenheim: "Re: Getting Logged in Windows user name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|