Re: Membership functions connect to Sql Server as Process Identity, not user identity??



not sure whats your problem - it compiles fine here -

SR is internal - maybe change it to public / don't put it in App_Code

the impersonation code in question is (in SqlConnectionHolder.Open)

if (revertImpersonate) {
using (HostingEnvironment.Impersonate()) {
Connection.Open();
}
}
else {
Connection.Open();
}

just change it to

Connection.Open();


(not tested)


---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Thanks again, I was wondering where the code was to change
impersonation. Now I have to figure out how to take the
SqlMembershipProvider, make my changes, and get it to compile
correctly. I tried to just copy all the source that microsoft provided
and put it in my app_code folder and change my settings in the
web.config file, but I got a compile error saying Microsoft.Samples.SR
is inaccesible due to its protection level. I don't know what this
means, so back to googling for answers.



.



Relevant Pages

  • Re: class wizard / conditional compilation
    ... Of course you need the above line if you want to access types in that ... You will add .cpp files to the project. ... compile the files, you must add these to the project. ... > found error, but when I do add these settings per configuration, it ...
    (microsoft.public.vc.mfc)
  • A little guidance please
    ... I have successfully built both Gentoo and Rock from scratch apart from Rock ... I have managed to install FreeBSD and boot into it and have to say this does ... to specify the cpu settings for the compile? ... Reading the handbook it says copy the settings from /etc/defaults/make.conf ...
    (comp.unix.bsd.freebsd.misc)
  • Re: A little guidance please
    ... > I have successfully built both Gentoo and Rock from scratch apart from ... > to specify the cpu settings for the compile? ... > Reading the handbook it says copy the settings from ... > I did not do the cvsup as I have sources instaled from my minimal install ...
    (comp.unix.bsd.freebsd.misc)
  • Re: class wizard / conditional compilation
    ... It seems I have to add all 3 versions, and then for each configuration, ... which is very hard from within project settings).. ... > compile the files, you must add these to the project. ... > Lisa Pearlson wrote: ...
    (microsoft.public.vc.mfc)
  • Re: /RTC1 and /CLR options are incompatible
    ... > gotten it to compile and work correctly in VS.Net 2003. ... > I went into my project properties and changed Use Managed Extensions ... > It kind of looks like the problem is that the existing source files ... > project-level settings, and those settings are causing this error. ...
    (microsoft.public.dotnet.languages.vc)