Re: Membership functions connect to Sql Server as Process Identity, not user identity??
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 16 Apr 2006 06:43:10 +0000 (UTC)
right - that's by design - and i would call it a feature..
Do you really want that every single user of your system has direct access to your credentials database??
out of curiosity - why do you use membership when you use Windows Authentication?
- and to answer your question - there is no way around it - you could download the sources of the SqlMembershipProvider and remove the code that checks for impersonation if thats really what you want/need...
http://download.microsoft.com/download/a/b/3/ab3c284b-dc9a-473d-b7e3-33bacfcc8e98/ProviderToolkitSamples.msi
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
When I attempt to use any of the Membership class functions (eg
getAllUsers()) to access my db from my web app, it is my
mydomain/processidentity attempting to log in to sql server, and this
is failing as this id has not been granted access in sql server(on
purpose). I am using windows authentication (in web.config), with
impersonation on, and basic authentication turned on, anonymous access
off, in IIS. When I access the database by means other than through
the Membership class, such as creating my own sql commands,
sqldatareaders, etc., I correctly log into sql server as the
impersonated user. Looking at the audit logs, it seems that regardless
of my impersonation settings, the Membership class functions run under
the processidentity id, not the impersonated user id. Is this by
design and is there any way around this? For the life of me I can't
figure out why these Membership functions do not assume the user id
like everything else does. I'm desparate for a solution and haven't
found a solution anywhere.
.
- Follow-Ups:
- References:
- Prev by Date: Membership functions connect to Sql Server as Process Identity, not user identity??
- Next by Date: Re: Membership functions connect to Sql Server as Process Identity, not user identity??
- Previous by thread: Membership functions connect to Sql Server as Process Identity, not user identity??
- Next by thread: Re: Membership functions connect to Sql Server as Process Identity, not user identity??
- Index(es):
Relevant Pages
|
|