Re: Obtaining network username when impersonate is set to false
From: Ramzey (jeremy_deats_at_hotmail.com)
Date: 08/12/03
- Next message: Ryan.Yeh: "Looking for SSL Reference"
- Previous message: Kevin Spencer: "Re: access is denied"
- In reply to: Ramzey: "Obtaining network username when impersonate is set to false"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 12 Aug 2003 08:29:29 -0700
I found the answer:
System.Web.HttpContext.Current.User.Identity.Name.ToString();
jeremy_deats@hotmail.com (Ramzey) wrote in message news:<d393d1b1.0308111400.4232c58f@posting.google.com>...
> In our environment we want to set it up so that our ASP.NET code can
> obtain a network users name (e.g. bgates) for the user accessing the
> page. This can easily be accomplished by setting impersonate to true
> in web.config, but we do not want the page to run in the context of
> the user. Instead we want it to run in the context of the asp_wp
> account.
>
> This may sound a bit strange, but really we're searching for a way
> around having to have users on the local network go through a log-in
> form. It seems less of a security to risk to use Integrated Windows
> security for authentication and then switch back to asp_wp to run all
> the code. I can actually accomplish that, I just need to be able to
> get the users name when impersonate set to false.
- Next message: Ryan.Yeh: "Looking for SSL Reference"
- Previous message: Kevin Spencer: "Re: access is denied"
- In reply to: Ramzey: "Obtaining network username when impersonate is set to false"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|