Re: Getting Logged in Windows user name

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 02/05/05


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.
>



Relevant Pages

  • Re: IIS6 - Virtual Directory to URL share, authentication problems.
    ... passing credentials across from webserver -> remote file server ... requires Kerberos (if IIS doesn't have the user's password), ... you won't get automatic logon. ... is that the "secure" authentication mechanisms do ...
    (microsoft.public.inetserver.iis.security)
  • Re: Can login domain be set to a default?
    ... need for specifying a login domain. ... accounts of the IIS box (and the login process needs a way to ... cannot specify a default domain for Windows integrated authentication ... > The internal domain for the three servers is different than the web site ...
    (microsoft.public.windows.server.security)
  • Re: Active Directory Authentication in IIS 6
    ... I just installed ldp.exe and have no problems using the same credentials ... used in the code to connect and bind. ... settings in IIS, but I am not sure where to look. ... and Integrated Windows Authentication is checked. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Basic Authentication fails with Error 401.2 where Integrated s
    ... The password dialog is supposed to appear for Basic authentication ... Thinking more esoterically now -- what are the login rights assigned ... IIS uses a specific login type, ... account created has full permissions for the folder and the file that's in it. ...
    (microsoft.public.inetserver.iis.security)
  • Re: shared folder access
    ... >account delegation from your physical server running IIS ... >Your first option is to use Basic Authentication in IIS ... >This will remove the UNC user token credentials ...
    (microsoft.public.dotnet.framework.aspnet.security)