
Signature
Martin Kulov
http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Hi Martin
I know the diference between IIS and WSE authentication mecanism. I have
made some systems that use impersonation mecanism, that is great (I create
only one user account and set it directly in IIS not in machine confige,
it's secure nobody can't see the password and no need encryption mecanism
all are based on windows security). I hear a lot about WSE and I try to use
it. From client I send user name and hash on the server I need to check the
the passwor in UsernameTokenManager derivede class, for this I need to
access DB, so I thought that I could use impersonation for trusted SPPI
connection but it's fail and I use connection string with the same user name
and password in encrypted form, but it's not so cool, because I use every
where in all applications trusted connection. The problem is that ASPNET
impersonate my account more late :(, but why. Request come to IIS and then
to ASPNET, and if in config <identity impersonate="true" /> framework must
run all process from this account, why not?
> Hi Viorel,
>
[quoted text clipped - 28 lines]
>
> [1]
http://www.codeattest.com/blogs/martin/2005/01/stacey-finds-missing-piece-in
-wse.html
> --
> Martin Kulov
[quoted text clipped - 23 lines]
> > with best reagrd
> > Viorel
William Stacey [MVP] - 26 Feb 2005 15:43 GMT
Not exactly sure what your issue is from the text. You might review why
you need impersonation - you may not. Once you get a UsernameToken or
SecurityContextToken (holding a UT), you can then just use Code Access
Security and verify roles for any secure method. If can factor your
methods in such a way where you don't need to mess with windows
impersonation, unless you actually need to be userX for some file operation,
etc. I also wonder why folks always talk about using a seperate account DB.
Why not just use AD or SAM for your account DB and leverage all user/group
tools?

Signature
William Stacey, MVP
http://mvp.support.microsoft.com
> Hi Martin
>
[quoted text clipped - 54 lines]
> >
> > [1]
http://www.codeattest.com/blogs/martin/2005/01/stacey-finds-missing-piece-in
> -wse.html
> >
[quoted text clipped - 28 lines]
> > > with best reagrd
> > > Viorel
Viorel Ghilas - 04 Mar 2005 10:25 GMT
Hi
The reason was to use one account for all system as you could read from
first message. The problem appear on I need to override method
AuthenticateToken and access DB for request some credentials, my DB
connection use trusted connection, but impersonate will enable after this
step, my questino was why, and how to solve the prblem?. 1. One solution
was to use encrypted connection string, but my application architecture was
based on impersonation mechanism,
2. To change in machine config ASPNET account to my account, but this method
require password in plain text, that is not secure
if I will not found the answer I will use the first method, but again it's a
bad idea :(
> Not exactly sure what your issue is from the text. You might review why
> you need impersonation - you may not. Once you get a UsernameToken or
[quoted text clipped - 82 lines]
> > >
> > > [1]
http://www.codeattest.com/blogs/martin/2005/01/stacey-finds-missing-piece-in
> > -wse.html
> > >
[quoted text clipped - 29 lines]
> > > > with best reagrd
> > > > Viorel