"kratc" wrote in message news:...
> I'm trying to list all the files in a directory (with subdirectories) to
> which the logged in user has
> permissions. I'm using forms authentication and the permissions are
> specified in web.config files.
> Everything's fine as long as the listing of files goes, but I would only
> like to show the files to the
> user to which the user has permissions.
Everything you need to do this can be found in the DirectoryServices
namespace...
Bear in mind, though, that the currently authenticated user isn't
necessarily the account that ASP.NET is running under (in fact, it almost
certainly isn't).
This article shows you how to set file permissions:
http://www.codeproject.com/dotnet/ad...&select=821739
but the underlying process for checking permissions is virtually identical.
If you need any further assistance, I'd suggest you post in
microsoft.public.adsi.general, which is the newsgroup specifically for
ActiveDirectory matters. Make sure you tell them that you want to do this in
ASP.NET... Anything Joe Kaplan tells you can be considered as gospel...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net