D
David Thielen
Hi;
Ok, I've almost got my system to handle opening files using any uname/pw
setup. One item remains.
If a share and file is set to allow "Everyone" then I want to allow any user
to open it. This requires either:
1) Is there a way to get the access rights for a share and for a file in the
share? In this case I can test for "Everyone" and have my ASP.NET user open
it.
2) Is there a way to impersonate an anonymous user and open it? This would
then fail if access was not set to Everyone.
3) Is there another way to do this?
BTW - once I get this part solved, I will put the full code in my blog and
post a link from here. This will give file access a system similiar to
XmlUrlResolver for http/ftp.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
Ok, I've almost got my system to handle opening files using any uname/pw
setup. One item remains.
If a share and file is set to allow "Everyone" then I want to allow any user
to open it. This requires either:
1) Is there a way to get the access rights for a share and for a file in the
share? In this case I can test for "Everyone" and have my ASP.NET user open
it.
2) Is there a way to impersonate an anonymous user and open it? This would
then fail if access was not set to Everyone.
3) Is there another way to do this?
BTW - once I get this part solved, I will put the full code in my blog and
post a link from here. This will give file access a system similiar to
XmlUrlResolver for http/ftp.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm