August 6, 2004

Using cfscript to create a java object to read active directory groups.

<cfscript>

o_NTAuth = createObject("java", "jrun.security.NTAuth");

o_NTAuth.init("Name_of_Domain");

groups = o_NTAuth.getUserGroups("#listlast(cgi.AUTH_USER,"\")#");

</cfscript>


<cfdump var="#groups#"/>

No comments: