Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / December 2006

Tip: Looking for answers? Try searching our database.

Read Xml document as anonymous

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 15 Dec 2006 22:41 GMT
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.

Signature

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

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

"Peter Huang" [MSFT] - 18 Dec 2006 10:08 GMT
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

Signature

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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.