...
To create a new UserDirectory , your required to have three database tables/views of the names dmUser , dmGroup , and dmUserToGroup . Below is layout of each of these tables/views. Note that if you're database does not have a matching field to any of the ones below, either substitute it with a similar field, or create a static field in the view. The fields that matter most will be marked in red. Also note that is not recommended to change this data via the FarCry security interface.
...
Below is the dmUserToGroup that was created.
Create a
...
new ColdFusion DSN (datasource)
The next step in this process is to create a DSN to the external database within the ColdFusion administrator. This is demonstrated below.
...
Add the following to the file. FoUsers can be any variable name, but note that this name is reflected in the security tab. The type MUST be Daemon when using a SQL database..
Code Block |
---|
// External Authentication Client User Directory
application.dmSec.UserDirectory.myUD = structNew(); <!--- choose a unique struct name inplace of 'myUD' --->
temp = application.dmSec.UserDirectory.myUD;
temp.type = "Daemon"; <!--- the type MUST be "Daemon" when using a SQL database --->
temp.datasource = "myDatasource"; <!--- the name of the ColdFusion DSN created previously --->
|
Final Setup
You should now see your new UserDirectory in the Policy and Security tabs. You must add mappings from the normal FarCry policy groups to external groups you've just added. Since we already set up groups, and the mappings between the users and groups, all that's left to do is map the groups to policies.
...