I am writing an application that allows users to browse the NT file system in the
style of xdrive.com or idrive.com. What I need to do is determine in advance if the
current user has permission to view the file or directory. PermissionChecker is a COM
object in the IIS Resource Kit. I want to call this using CFOBJECT, but it returns
the error "No such interface supported". The ASP code below works just fine.
Can anyone help make this COM object work or provide some alternative way to validate
a users permissions against files and directories?
cf code that returns an error:
<cfobject
NAME="pmck"
TYPE="COM"
ACTION="Create"
CLASS=IISSample.PermissionChecker
>
<cfset tester = pmck.HasAccess("index.cfm")>
<cfoutput>#tester#</cfoutput>
ASP Code that works (from the example given with the object)
<%
' Create Permission Checker Object
Set pmck = Server.CreateObject("IISSample.PermissionChecker")
%>
<OL>
<!-- Test file "a.htm" -->
<% filename = "a.htm" %>
<LI>
<% If pmck.HasAccess(filename) Then %>
You have access rights to <A HREF=<%= filename %>><%= filename %></A>.
<% Else %>
You don't have access rights to <%= filename %>.
<% End If %>
</LI>
Thanks!
Bryan Martin
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.