Ask a Question related to ASP.NET Security, Design and Development.
-
Jamie #1
impersonating windows authenticated user?
I have a asp.net web application that i wrote for internal use in my
company. The problem i'm having is being able to test the application as
other users see it. The security for the asp.net app is Windows
Authentication. I'd like to be able to (for testing purposes) impersonate
another user so i can see things as they see them. I don't want to have to
change all of my active directory permissions to match their permissions,
that's not an option. Also, there is no way i can test certain features of
the application without being logged in as some specific users. I'm sure i
could do this if i wrote my own IsInRole method and passed in a username of
my choice and an active directory group and then interfaced with active
directory myself, but i was hoping there is an easier way that affects less
existing code.
Is there a way to stuff Page.User with an impersonated windows user? If so,
how would i create a valid impersonated windows user?
Thanks,
Jamie
Jamie Guest
-
HELP: ASP.NET Web Application, Impersonating User and Creating Threads via C++ COM Object
Sorry for the long subject, but it summarizes my issue nicely. I have an ASP.NET application running ... it's a web app running under IIS. For... -
How to allow authenticated user to impersonate
If you are running under W2000, you must add the "Act as part of the operating system" privilege to the account that will try to impersonate. On XP... -
ASP.NET Impersonating a Certain User At Run time
If you looking for a way to use Forms Authentication with Active Directory, following web site may be a worth reading as your start point. I'm... -
Can I force 401 error when user not authenticated?
Currently I have succesfully implemented role-based folder security using roles and web.config in each folder. This works great - if a user is not... -
Terminating a authenticated user
Hi, 1. How can I "terminate" an authenticated user? (I would like the server to redirect the user to the login page again. I'm using "forms... -
Hernan de Lahitte #2
Re: impersonating windows authenticated user?
Hi,
Have you tried using IIS Basic Authentication? I think this is the fastest
way of doing this.
--
Hernan de Lahitte
Lagash Systems S.A.
"Jamie" <spammerssuck@nospam.com> wrote in message
news:eAQVohy7DHA.2644@TK2MSFTNGP11.phx.gbl...to> I have a asp.net web application that i wrote for internal use in my
> company. The problem i'm having is being able to test the application as
> other users see it. The security for the asp.net app is Windows
> Authentication. I'd like to be able to (for testing purposes) impersonate
> another user so i can see things as they see them. I don't want to havei> change all of my active directory permissions to match their permissions,
> that's not an option. Also, there is no way i can test certain features of
> the application without being logged in as some specific users. I'm sureof> could do this if i wrote my own IsInRole method and passed in a usernameless> my choice and an active directory group and then interfaced with active
> directory myself, but i was hoping there is an easier way that affectsso,> existing code.
>
> Is there a way to stuff Page.User with an impersonated windows user? If> how would i create a valid impersonated windows user?
>
>
> Thanks,
> Jamie
>
>
Hernan de Lahitte Guest
-
Jamie #3
Re: impersonating windows authenticated user?
Thanks for the suggestion. But that won't work. We need to use the more
secure Windows Authentication.
"Hernan de Lahitte" <hernan@lagash.com> wrote in message
news:OwmVqF07DHA.488@TK2MSFTNGP12.phx.gbl...impersonate> Hi,
>
> Have you tried using IIS Basic Authentication? I think this is the fastest
> way of doing this.
>
> --
> Hernan de Lahitte
> Lagash Systems S.A.
>
>
>
>
> "Jamie" <spammerssuck@nospam.com> wrote in message
> news:eAQVohy7DHA.2644@TK2MSFTNGP11.phx.gbl...> > I have a asp.net web application that i wrote for internal use in my
> > company. The problem i'm having is being able to test the application as
> > other users see it. The security for the asp.net app is Windows
> > Authentication. I'd like to be able to (for testing purposes)permissions,> to> > another user so i can see things as they see them. I don't want to have> > change all of my active directory permissions to match theirof> > that's not an option. Also, there is no way i can test certain featuressure> > the application without being logged in as some specific users. I'm> i> of> > could do this if i wrote my own IsInRole method and passed in a username> less> > my choice and an active directory group and then interfaced with active
> > directory myself, but i was hoping there is an easier way that affects> so,> > existing code.
> >
> > Is there a way to stuff Page.User with an impersonated windows user? If>> > how would i create a valid impersonated windows user?
> >
> >
> > Thanks,
> > Jamie
> >
> >
>
Jamie Guest
-
Joe Kaplan \(MVP - ADSI\) #4
Re: impersonating windows authenticated user?
It is possible to change your IE settings so that Integrated authentication
always prompts for credentials instead of just passing in the default
credentials of the current user.
Maybe that would help with your testing. You will still need to be able to
get the credentials of different users to do testing. You need a user's
credentials to create a token in Windows.
Joe K.
"Jamie" <spammerssuck@nospam.com> wrote in message
news:%23rE$6J17DHA.1504@TK2MSFTNGP12.phx.gbl...fastest> Thanks for the suggestion. But that won't work. We need to use the more
> secure Windows Authentication.
>
>
> "Hernan de Lahitte" <hernan@lagash.com> wrote in message
> news:OwmVqF07DHA.488@TK2MSFTNGP12.phx.gbl...> > Hi,
> >
> > Have you tried using IIS Basic Authentication? I think this is theas> > way of doing this.
> >
> > --
> > Hernan de Lahitte
> > Lagash Systems S.A.
> >
> >
> >
> >
> > "Jamie" <spammerssuck@nospam.com> wrote in message
> > news:eAQVohy7DHA.2644@TK2MSFTNGP11.phx.gbl...> > > I have a asp.net web application that i wrote for internal use in my
> > > company. The problem i'm having is being able to test the applicationhave> impersonate> > > other users see it. The security for the asp.net app is Windows
> > > Authentication. I'd like to be able to (for testing purposes)> > > another user so i can see things as they see them. I don't want tofeatures> permissions,> > to> > > change all of my active directory permissions to match their> > > that's not an option. Also, there is no way i can test certainusername> of> sure> > > the application without being logged in as some specific users. I'm> > i> > > could do this if i wrote my own IsInRole method and passed in aactive> > of> > > my choice and an active directory group and then interfaced withIf> > less> > > directory myself, but i was hoping there is an easier way that affects> > > existing code.
> > >
> > > Is there a way to stuff Page.User with an impersonated windows user?>> > so,> >> > > how would i create a valid impersonated windows user?
> > >
> > >
> > > Thanks,
> > > Jamie
> > >
> > >
> >
>
Joe Kaplan \(MVP - ADSI\) Guest
-
Jamie #5
Re: impersonating windows authenticated user?
Yeah, that's what i figured. That won't really help either as getting users
passwords isn't an option. I'll just use my own IsInRole method where i pass
in the users login which i'll supply if i'm testing and use
Page.User.Identity.Name otherwise.
Thanks.
"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
in message news:%2334ZDR17DHA.2472@TK2MSFTNGP10.phx.gbl...authentication> It is possible to change your IE settings so that Integratedto> always prompts for credentials instead of just passing in the default
> credentials of the current user.
>
> Maybe that would help with your testing. You will still need to be ableapplication> get the credentials of different users to do testing. You need a user's
> credentials to create a token in Windows.
>
> Joe K.
>
> "Jamie" <spammerssuck@nospam.com> wrote in message
> news:%23rE$6J17DHA.1504@TK2MSFTNGP12.phx.gbl...> fastest> > Thanks for the suggestion. But that won't work. We need to use the more
> > secure Windows Authentication.
> >
> >
> > "Hernan de Lahitte" <hernan@lagash.com> wrote in message
> > news:OwmVqF07DHA.488@TK2MSFTNGP12.phx.gbl...> > > Hi,
> > >
> > > Have you tried using IIS Basic Authentication? I think this is the> > > way of doing this.
> > >
> > > --
> > > Hernan de Lahitte
> > > Lagash Systems S.A.
> > >
> > >
> > >
> > >
> > > "Jamie" <spammerssuck@nospam.com> wrote in message
> > > news:eAQVohy7DHA.2644@TK2MSFTNGP11.phx.gbl...
> > > > I have a asp.net web application that i wrote for internal use in my
> > > > company. The problem i'm having is being able to test theaffects> as> have> > impersonate> > > > other users see it. The security for the asp.net app is Windows
> > > > Authentication. I'd like to be able to (for testing purposes)> > > > another user so i can see things as they see them. I don't want to> features> > permissions,> > > to
> > > > change all of my active directory permissions to match their> > > > that's not an option. Also, there is no way i can test certain> username> > of> > sure> > > > the application without being logged in as some specific users. I'm> > > i
> > > > could do this if i wrote my own IsInRole method and passed in a> active> > > of
> > > > my choice and an active directory group and then interfaced with> > > > directory myself, but i was hoping there is an easier way that> If> > > less
> > > > existing code.
> > > >
> > > > Is there a way to stuff Page.User with an impersonated windows user?>> >> > > so,
> > > > how would i create a valid impersonated windows user?
> > > >
> > > >
> > > > Thanks,
> > > > Jamie
> > > >
> > > >
> > >
> > >
> >
>
Jamie Guest
-
Ken Schaefer #6
Re: impersonating windows authenticated user?
There's no way you'd be able to impersonate someone without having their
credentials. Otherwise you could impersonate a Domain Administrator or
Enterprise Administrator account, and do whatever you wanted and there's no
real way of having it tracked back to you! :-)
Maybe ask your administrators to create some dummy accounts that have the
types of permissions that you want, and you could use those.
Cheers
Ken
"Jamie" <spammerssuck@nospam.com> wrote in message
news:%23lzJrV17DHA.696@tk2msftngp13.phx.gbl...
: Yeah, that's what i figured. That won't really help either as getting
users
: passwords isn't an option. I'll just use my own IsInRole method where i
pass
: in the users login which i'll supply if i'm testing and use
: Page.User.Identity.Name otherwise.
:
: Thanks.
:
:
: "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
: in message news:%2334ZDR17DHA.2472@TK2MSFTNGP10.phx.gbl...
: > It is possible to change your IE settings so that Integrated
: authentication
: > always prompts for credentials instead of just passing in the default
: > credentials of the current user.
: >
: > Maybe that would help with your testing. You will still need to be able
: to
: > get the credentials of different users to do testing. You need a user's
: > credentials to create a token in Windows.
: >
: > Joe K.
: >
: > "Jamie" <spammerssuck@nospam.com> wrote in message
: > news:%23rE$6J17DHA.1504@TK2MSFTNGP12.phx.gbl...
: > > Thanks for the suggestion. But that won't work. We need to use the
more
: > > secure Windows Authentication.
: > >
: > >
: > > "Hernan de Lahitte" <hernan@lagash.com> wrote in message
: > > news:OwmVqF07DHA.488@TK2MSFTNGP12.phx.gbl...
: > > > Hi,
: > > >
: > > > Have you tried using IIS Basic Authentication? I think this is the
: > fastest
: > > > way of doing this.
: > > >
: > > > --
: > > > Hernan de Lahitte
: > > > Lagash Systems S.A.
: > > >
: > > >
: > > >
: > > >
: > > > "Jamie" <spammerssuck@nospam.com> wrote in message
: > > > news:eAQVohy7DHA.2644@TK2MSFTNGP11.phx.gbl...
: > > > > I have a asp.net web application that i wrote for internal use in
my
: > > > > company. The problem i'm having is being able to test the
: application
: > as
: > > > > other users see it. The security for the asp.net app is Windows
: > > > > Authentication. I'd like to be able to (for testing purposes)
: > > impersonate
: > > > > another user so i can see things as they see them. I don't want
to
: > have
: > > > to
: > > > > change all of my active directory permissions to match their
: > > permissions,
: > > > > that's not an option. Also, there is no way i can test certain
: > features
: > > of
: > > > > the application without being logged in as some specific users.
I'm
: > > sure
: > > > i
: > > > > could do this if i wrote my own IsInRole method and passed in a
: > username
: > > > of
: > > > > my choice and an active directory group and then interfaced with
: > active
: > > > > directory myself, but i was hoping there is an easier way that
: affects
: > > > less
: > > > > existing code.
: > > > >
: > > > > Is there a way to stuff Page.User with an impersonated windows
user?
: > If
: > > > so,
: > > > > how would i create a valid impersonated windows user?
: > > > >
: > > > >
: > > > > Thanks,
: > > > > Jamie
: > > > >
: > > > >
: > > >
: > > >
: > >
: > >
: >
: >
:
:
Ken Schaefer Guest



Reply With Quote

