Impersonating user : DOTNET
This is a discussion on Impersonating user within the DOTNET forums in Framework and Interface Programming category; 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....
| DOTNET Discussion forums related to Microsoft Dot net technologies, CSharp and other related items |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| 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. |
|
#2
| |||
| |||
| 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" <kedarnag@hotmail.com> a écrit dans le message de news: ucLz9sU9HHA.1168@TK2MSFTNGP02.phx.gbl... > > 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. > |
|
#3
| |||
| |||
| You can do this in your web config file <system.web> <identity impersonate="true" userName="username" password="password" /> </system.web> Mike "kedar" <kedarnag@hotmail.com> wrote in message news:ucLz9sU9HHA.1168@TK2MSFTNGP02.phx.gbl... > > 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. > |
|
#4
| |||
| |||
| 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. > > |
|
#5
| |||
| |||
| 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" <kedarnag@hotmail.com> wrote in message news:ucLz9sU9HHA.1168@TK2MSFTNGP02.phx.gbl... > > 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. > |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Issue With Programmatically Impersonating a User in a Web-Part | usenet | Sharepoint | 6 | 02-17-2010 04:51 AM |
| Impersonating user | usenet | Inetserver | 1 | 09-12-2007 12:41 PM |
| impersonating ASPNET account does not work for com interop? | usenet | DOTNET | 1 | 08-22-2007 03:54 PM |
| SSPI-Error when impersonating to a fixed server account in ASP | usenet | DOTNET | 0 | 09-04-2006 09:34 AM |
| Impersonating Accounts: | usenet | basic.visual | 0 | 02-20-2006 01:14 AM |
All times are GMT -5. The time now is 08:35 AM.


