Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > authenticating access to files from ASP.NET

Reply
Thread Tools

authenticating access to files from ASP.NET

 
 
John Challis
Guest
Posts: n/a
 
      07-06-2005
I want to restrict access to files (on local and remote servers) without
requiring users to log in to my ASP.NET application. The users are on an
intranet, anonymous access is disabled and Integrated Windows Authentication
is enabled.

Now, how can we determine if the current authenticated user has access to
specific local and remote files on other Windows servers within the domain?

Please note, we do not wish to restrict access to web pages - but to any file.

Thanks in advance.
 
Reply With Quote
 
 
 
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      07-06-2005
The right way to do this is to impersonate the user and try to access the
file. It will throw an exception if you can't access it.

For the remote files on a file share, you'll also need Kerberos delegation
to make that work as that involves an extra machine hop and that is only
supported with delegation.

If you want a friendly way to check in advance if the user will have access
to the file before attempting to open it (or list it), then you probably
need to look at doing p/invoke and using the security APIs like AccessCheck.

Joe K.

"John Challis" <John > wrote in message
news:C3602D78-CC7B-4549-AFDA-...
>I want to restrict access to files (on local and remote servers) without
> requiring users to log in to my ASP.NET application. The users are on an
> intranet, anonymous access is disabled and Integrated Windows
> Authentication
> is enabled.
>
> Now, how can we determine if the current authenticated user has access to
> specific local and remote files on other Windows servers within the
> domain?
>
> Please note, we do not wish to restrict access to web pages - but to any
> file.
>
> Thanks in advance.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ACS not authenticating with external database wisdom1999@gmail.com Cisco 0 03-03-2006 08:22 PM
IAS authenticating multiple tunnel types rexxus@gmail.com Cisco 0 02-07-2006 12:52 AM
OT ISA 2000 not authenticating proxy clients with active directory Rick MCSE 2 07-06-2004 04:47 PM
AS5300: IOS 12.3.1a, not authenticating after upgrade Pavlov Cisco 0 07-14-2003 06:56 PM
How do you figure out the LDAP://? ("Error authenticating. Error authenticating user. The specified domain either does not exist or could not be contacted") mrwoopey ASP .Net 3 06-30-2003 10:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57