You'll need to have sandbox security on  but this should work once  
you do (Otherwise you'll get a "sandbox not found" error):

<cfscript>
//Set our sandbox directory
sandbox = expandPath("/");
//Instantiate the Admin API
createObject("component","cfide.adminapi.administrator").login 
(variables.cfadminpassword);
//Create the Datasource
dTags = createObject 
("component","cfide.adminapi.security").getDisabledCFTags(sandbox);
</cfscript>

<cfdump var="#dTags#">

-Jon


On Nov 14, 2006, at 3:31 PM, D F wrote:

> Hi there, I'm trying to access the getDisabledCFTags method of the  
> CF admin api secutity cfc.
>
> The method requires a directory to be specified to get the  
> permissions. But as this is the standard version of CFMX 7 there  
> does not appear to be anything available to add these.
>
> The thing that confuses me is that there is still options to  
> disable / enable tags in the CF admin, so there must be a directory  
> name I can pass into this to get the disabled tags.
>
> cfcObj = createObject("component","cfide.adminapi.security");
>       
> str_server_settings.Security_Disabled_Tags =  
> cfcObj.getDisabledCFTags(directory:'???');
>
> I've tried 'wwwroot', 'inetpub'... 'any'  ...  any ideas?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260429
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to