Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Impersonation of an existing user in AD when logged in as admin:Possible?

Reply
Thread Tools

Impersonation of an existing user in AD when logged in as admin:Possible?

 
 
MarkusJ_NZ
Guest
Posts: n/a
 
      06-17-2009
Hi, I was wondering if the following was possible.

A user logs in using Forms Authentication which is aithenticated
against AD and is set a FormsAuthentication Cookie.

If the user is an admin user I would like to be able to impersonate
another user simply by passing through the username. I was hoping that
because the current user is an Admin user they could easily
impersonate another user without having to supply the others users
password.

The sceptic in me knows that this should probably not work as a user
should have to supply the existing username / password of a user if
the want to impersonate another user but I thought that I would just
ask

Thanks for any response / help
Markus
 
Reply With Quote
 
 
 
 
Joe Kaplan
Guest
Posts: n/a
 
      06-17-2009
You can use protocol transition logon to get a WindowsIdentity for an
arbitrary user if you know their UPN. This token can be impersonated and
used to access local resources if the process that executes the
WindowsIdentity constructor has TCB privilege aka "act as part of the
operating system" (which usually you would not in a web app).

To use this constructor for WindowsIdentity, you must have a 2003+ server
and must have a 2003+ native forest mode AD.

If you can't use protocol transition, you'll need credentials for the user.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"MarkusJ_NZ" <> wrote in message
news:24cdbd35-4d60-4872-93a9-...
> Hi, I was wondering if the following was possible.
>
> A user logs in using Forms Authentication which is aithenticated
> against AD and is set a FormsAuthentication Cookie.
>
> If the user is an admin user I would like to be able to impersonate
> another user simply by passing through the username. I was hoping that
> because the current user is an Admin user they could easily
> impersonate another user without having to supply the others users
> password.
>
> The sceptic in me knows that this should probably not work as a user
> should have to supply the existing username / password of a user if
> the want to impersonate another user but I thought that I would just
> ask
>
> Thanks for any response / help
> Markus


 
Reply With Quote
 
 
 
 
MarkusJ_NZ
Guest
Posts: n/a
 
      06-17-2009
On Jun 18, 3:09*am, "Joe Kaplan"
<joseph.e.kap...@removethis.accenture.com> wrote:
> You can use protocol transition logon to get a WindowsIdentity for an
> arbitrary user if you know their UPN. *This token can be impersonated and
> used to access local resources if the process that executes the
> WindowsIdentity constructor has TCB privilege aka "act as part of the
> operating system" (which usually you would not in a web app).
>
> To use this constructor for WindowsIdentity, you must have a 2003+ server
> and must have a 2003+ native forest mode AD.
>
> If you can't use protocol transition, you'll need credentials for the user.
>
> --
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"http://www.directoryprogramming.net"MarkusJ_NZ" <markus...@gmail.com> wrote in message
>
> news:24cdbd35-4d60-4872-93a9-...
>
>
>
> > Hi, I was wondering if the following was possible.

>
> > A user logs in using Forms Authentication which is aithenticated
> > against AD and is set a FormsAuthentication Cookie.

>
> > If the user is an admin user I would like to be able to impersonate
> > another user simply by passing through the username. I was hoping that
> > because the current user is an Admin user they could easily
> > impersonate another user without having to supply the others users
> > password.

>
> > The sceptic in me knows that this should probably not work as a user
> > should have to supply the existing username / password of a user if
> > the want to impersonate another user but I thought that I would just
> > ask

>
> > Thanks for any response / help
> > Markus- Hide quoted text -

>
> - Show quoted text -


Thanks for the response Joe

best wishes
Markus
 
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
Existing Dll - using Functions from an existing dll Tristin.Colby@gmail.com Ruby 0 02-05-2008 07:38 PM
Serious issue: parts of my page render as not logged in, parts as logged in. Help! pcloches@gmail.com ASP .Net 1 04-12-2007 12:50 AM
Why no existing Java type to existing XML schema binding support? nrm Java 3 04-10-2006 04:52 PM
LoginView does not show a logged in user as being logged in keithb ASP .Net 0 02-16-2006 05:20 PM
Dispalying Welcome User to logged in user mark ASP .Net Web Controls 4 10-07-2005 11:12 AM



Advertisments