Dashboard > FarCry 3.0 Developers Guide > Home > Security > External Authentication > Setting up Active Directory
FarCry 3.0 Developers Guide
Setting up Active Directory
Added by Reid McLaughlin , last edited by Pete Alexandrou on Jul 14, 2008  (view change) show comment
Labels: 
(None)

Overview

A how-to and sample code for setting up Active Directory as your default FarCry user directory.

Instructions

Download the attached ZIP and extract the two files to your machine.

  Name Size Creator Date Comment  
ZIP Archive AD_farcry_setup.zip 4 kb Reid McLaughlin Jul 05, 2006 contains login.cfm and _dmSecUserDirectories.cfm  

First step: edit the _dmSecUserDirectories.cfm and add your domains NetBIOS name to the temp.domain variable. e.g.

./config/_dmSecUserDirectories.cfm
temp.type = "ADSI"; 
temp.domain = "ourdomain"; //NOTE: NetBIOS name not FQDN

Save and copy the altered _dmSecUSerDirectories.cfm into your sites config directory. e.g. /wwwroot/farcry_oursite/config

Refresh your app after copying in _dmSecUserDirectories.cfm ("www.oursite.com/?updateapp=1")

Second step: login (as farcry admin) to farcry >> security >> policy...
In the "map policy group" the drop-down "Map groups from:" should show CLIENTID and AD, choose AD and wait... our AD has over 240 groups so this normally takes 25-30 seconds easy before the "External group to map from:" drop-down is populated with our AD groups.

The login.cfm in the zip is just a variation of farcry_core login.cfm.
After the app returns a userid and password as correct my login page checks that the user has a profile in Farcry and if not will create one using email, name and department details from AD. Take out or add whatever you wish from your own AD.

Powered by a free Atlassian Confluence Open Source Project License granted to FarCry CMS. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators