Private Functions
[Access Control library]

Functions

void _fwAccessControl_exportDomain (dyn_string &expCmd, string domainName, dyn_string &exceptionInfo)
void _fwAccessControl_exportGroup (dyn_string &expCmd, string groupName, dyn_string &exceptionInfo)
void _fwAccessControl_exportSubGroup (dyn_string &expCmd, string groupName, dyn_string &exceptionInfo)
void _fwAccessControl_exportUser (dyn_string &expCmd, string userName, dyn_string &exceptionInfo)

Variables

global bool g_fwAccessControl_initialised = FALSE
global string g_fwAccessControl_AreasDP
global string g_fwAccessControl_GroupsDP
global string g_fwAccessControl_UsersDP
global string g_fwAccessControl_WorkstationsDP
global mapping g_fwAccessControl_workstationAliases
global string g_fwAccessControl_ConfigurationDP
global string g_fwAccessControl_DefaultAdminPriv
global string g_fwAccessControl_CurrentRole
const int GROUP_IDX_TO_NAME = 2
const int DOMAIN_NAME_TO_IDX = 3
const int DOMAIN_IDX_TO_NAME = 4
const int USER_NAME_TO_IDX = 5
const int USER_IDX_TO_NAME = 6

Permission-related functions

see also the module Permission manipulation functions



void fwAccessControl_setPrivilegeNames (string domainName, dyn_string privilegeNames, dyn_string &exceptionInfo)

Framework domain specific functions



void _fwAccessControl_checkInit ()

Function Documentation

void fwAccessControl_setPrivilegeNames ( string  domainName,
dyn_string  privilegeNames,
dyn_string &  exceptionInfo 
)

sets the list of privilege names for a domain

void _fwAccessControl_checkInit (  ) 

initialized variables used by access control

note that custom initialization hooks may be provided by defining function fwAccessControl_initializeHook(); it will be called automatically at the end of startup, before the autologin/forcelogin. Note that the hook function is executed with root authorization!!!

void _fwAccessControl_exportDomain ( dyn_string &  expCmd,
string  domainName,
dyn_string &  exceptionInfo 
)

Exports domain information as a text suitable for .postInstall script

Parameters:
expCmd lines with CTRL commands will be appended to this variable
domainName the name of the domain to export
exceptionInfo standard exception handling variable

NOTE! The "generic" privilege names (names matchin "PRIV?", i.e. PRIV5, PRIV6, PRIV7) will not be stored!

void _fwAccessControl_exportGroup ( dyn_string &  expCmd,
string  groupName,
dyn_string &  exceptionInfo 
)

Exports group information as a text suitable for .postInstall script

Parameters:
expCmd lines with CTRL commands will be appended to this variable
groupName the name of the group to export
exceptionInfo standard exception handling variable
void _fwAccessControl_exportSubGroup ( dyn_string &  expCmd,
string  groupName,
dyn_string &  exceptionInfo 
)

Exports subgroup information as a text suitable for .postInstall script

Parameters:
expCmd lines with CTRL commands will be appended to this variable
groupName the name of the group, the subgroup info of which to be exported
exceptionInfo standard exception handling variable
void _fwAccessControl_exportUser ( dyn_string &  expCmd,
string  userName,
dyn_string &  exceptionInfo 
)

Exports user information as a text suitable for .postInstall script

Parameters:
expCmd lines with CTRL commands will be appended to this variable
userName the name of the user to export
exceptionInfo standard exception handling variable

Variable Documentation

global bool g_fwAccessControl_initialised = FALSE

flag indicating the initialisation

contains the DP name storing area information, usually SystemName:_Areas

contains the DP name storing groups information, usually SystemName:_Groups

contains the DP name storing Users information, usually SystemName:_Users

contains the DP name storing Workstation information, usually SystemName:_WsPermission

contains the mapping of aliases for workstations to the list of names

contains the DP name storing the Fw Access Control Settings

contains the default name:privilege for user/group/domain administration; as of fwAccessControl-3.2.24 the new default it is SYSTEM:FwAccessControl (privilege 30 of system domain)

Currently selected role, if strict role checking enabled.

const int GROUP_IDX_TO_NAME = 2

convert group index to group name in _fwAccessControl_convert

const int DOMAIN_NAME_TO_IDX = 3

convert domain name to domain index in _fwAccessControl_convert

const int DOMAIN_IDX_TO_NAME = 4

convert domain index to domain name in _fwAccessControl_convert

const int USER_NAME_TO_IDX = 5

convert user name to user index in _fwAccessControl_convert

const int USER_IDX_TO_NAME = 6

convert user index to user name in _fwAccessControl_convert


Generated on 14 Jan 2016 for Access Control component by  doxygen 1.6.1