Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Impersonating user

Reply
Thread Tools

Impersonating user

 
 
kedar
Guest
Posts: n/a
 
      09-12-2007

Hi,

I have a asp.net application, which control virtual directory, we want any
user to access and we do not want to use windows authentication(we do not
want windows authentication dialog) or forms authentication(as we do not
want any login page). However we want to impersonate the user.

Could anyone tell how to achieve this.

thanks,
Kedar.


 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      09-12-2007
Not sure what is the exact problem. See :
http://support.microsoft.com/kb/306158.

You could use Integrated Windows Authentication (that is the same identity
than the one used to open the Windows session ??)...

--
Patrice

"kedar" <(E-Mail Removed)> a écrit dans le message de news:
http://www.velocityreviews.com/forums/(E-Mail Removed)...
>
> Hi,
>
> I have a asp.net application, which control virtual directory, we want any
> user to access and we do not want to use windows authentication(we do not
> want windows authentication dialog) or forms authentication(as we do not
> want any login page). However we want to impersonate the user.
>
> Could anyone tell how to achieve this.
>
> thanks,
> Kedar.
>



 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      09-12-2007
You can do this in your web config file

<system.web>
<identity impersonate="true" userName="username" password="password" />
</system.web>


Mike

"kedar" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hi,
>
> I have a asp.net application, which control virtual directory, we want any
> user to access and we do not want to use windows authentication(we do not
> want windows authentication dialog) or forms authentication(as we do not
> want any login page). However we want to impersonate the user.
>
> Could anyone tell how to achieve this.
>
> thanks,
> Kedar.
>



 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      09-12-2007
if you want to impersonate the user you need to pick some
authentication. browsers are getting more reluctant to send credentials
without informing the user.

also if your code impersonates the user than accesses a share, you will
need a primary security token. this come only kerberos or basic
authentication (which always display a dialog box).


-- bruce (sqlwork.com)

kedar wrote:
> Hi,
>
> I have a asp.net application, which control virtual directory, we want any
> user to access and we do not want to use windows authentication(we do not
> want windows authentication dialog) or forms authentication(as we do not
> want any login page). However we want to impersonate the user.
>
> Could anyone tell how to achieve this.
>
> thanks,
> Kedar.
>
>

 
Reply With Quote
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      09-12-2007
You mean you want it to impersonate whoever logs in, but never give a login?

If so, use windows authentication and you are fine. As long as you are on a
domain, that is. If you mean you want an external user (someone coming in
from a public location) to get in without logging on, it is not going to
happen without either a) including the external machine in your domain (a
lot of work) or b) the user VPNing in with a domain account.

The windows auth dialog only pops up when the user cannot be determined.

Now, you can impersonate a single user rather easily. Just set up the user
in the web.config file. If you want to impersonate the user "logging in",
you have to use windows auth. There is a risk, if the network is not set up
correctly, of having the dialog pop up.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"kedar" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hi,
>
> I have a asp.net application, which control virtual directory, we want any
> user to access and we do not want to use windows authentication(we do not
> want windows authentication dialog) or forms authentication(as we do not
> want any login page). However we want to impersonate the user.
>
> Could anyone tell how to achieve this.
>
> thanks,
> Kedar.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Impersonating user kedar ASP .Net Security 4 09-14-2007 05:51 PM
Occasional SecurityException when impersonating a user on a new thread =?iso-8859-1?q?Eir=EDkur_Fannar_Torfason?= ASP .Net 4 05-18-2007 03:31 PM
Impersonating other domain user in ASP.Net cmw@europe.com ASP .Net Security 4 02-15-2007 03:08 PM
Impersonating a User and Starting Standalone Processes stop workin =?Utf-8?B?SW5kZXB0aA==?= ASP .Net 1 04-01-2005 09:05 PM
impersonating windows authenticated user? Jamie ASP .Net Security 5 02-11-2004 11:57 AM



Advertisments