> I've got a Sharepoint website for which the 'big guy' doesn't want to enable
> impersonation.
> ...
> Is there a way to create code to, instead of using the authenticated user,
> use the ASPNet user account?
If impersonation is disabled then the ASP.NET user account will be
used anyway. However if the authentication mode is "Windows" then in
theory the authenticated Users privileges are merged with the ASP.NET
account (or so Microsoft tell us).
HTH
Seth Williams - 21 May 2008 15:02 GMT
My code is below - anyway to change it to the ASPNet user?
Dim impersonationContext As
System.Security.Principal.WindowsImpersonationContext
Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity
currentWindowsIdentity = CType(User.Identity,
System.Security.Principal.WindowsIdentity)
impersonationContext = currentWindowsIdentity.Impersonate()
I've tried substituting it, in place of User.Identity, but that's not meant
for a string, so, of course, it doesn't work
>> I've got a Sharepoint website for which the 'big guy' doesn't want to
>> enable
[quoted text clipped - 10 lines]
>
> HTH