Groups | Blog | Home
all groups > dotnet sdk > december 2006 >

dotnet sdk : Read Xml document as anonymous


David Thielen
12/15/2006 2:41:01 PM
Hi;

How do I read an xml file on a share as an anonymous user (ie it must allow
access by anyone)? I tried doing impersonate on
WindowsIdentity.GetAnonymous() but that is not allowed.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

v-phuang NO[at]SPAM online.microsoft.com (
12/18/2006 12:00:00 AM
Hi Dave,

If we investigate the GetAnonymous with reflector, we will get as below
that is just a new Identity without token informaiton.
public static WindowsIdentity GetAnonymous()
{
return new WindowsIdentity();
}

Also what is your concrete environment, in a domain/workgroup.

Because based on my test, as long as the share is for everyone(both NTFS
and network share security), then even if the user credential is not
explicitly granted permission on the share source, we can still access to
that resrouce.

Can describe your scenario more detailed? e.g. what is your ultimate goal?

Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button