esi-security-defaults

esi-security-defaults library provides templates for profiles

Documentation

GENERATE_RANDOM_STRING(length)

Generate random string with provided length, consisting of numbers and characters

Parameters

length

Length of string that is generated

Returns

string # SET_COMPLEXITY(length)

Set password complexity for profile password

Parameters

length

Length of password that is generated

SET_REPLACEMENTS(replacementsKvP)

Set list of replacement tokens, which will be applied to all templates

Parameters

replacementsKvP

table with key value pairs, where each key is a token name, and the value of the to-be replaced value.

SET_PROFILE_TEMPLATES_MASTER(templates)

Override list of default profile templates for the Master-Core.

Parameters

templates

table with a list of tables for profiles, according to the syslib.mass format. Property values can contain tokens in the format TOKEN, which will be replaced.

GET_PROFILE_TEMPLATES_MASTER_RAW()

Retrieve Master-Core templates in raw format

GET_PROFILE_TEMPLATES_MASTER(massTbl,includeRefs,hasEngineers)

Retrieve resolved list of Master-Core profiles with properties according to template, with resolved token values.

Parameters

massTbl

table suitable for syslib.mass command

includeRefs

if set to non-nil, the returned templates will also contain the refs table (for further processing)

hasEngineers

If non-nil, result will include 2 reader profiles (one with DataStudio 'readers', one without DataStudio permissions 'engineers'). If nil, the 'readers' profile has permissions for DataStudio.

SET_PROFILE_TEMPLATES_LOCAL(templates)

Override list of default profile templates for a Local-Core.

Parameters

templates

table with a list of tables for profiles, according to the syslib.mass format. Property values can contain tokens in the format TOKEN, which will be replaced.

GET_PROFILE_TEMPLATES_LOCAL_RAW()

Retrieve Local-Core templates in raw format

GET_PROFILE_TEMPLATES_LOCAL(massTbl,includeRefs,hasEngineers,hasVkpi,hasMES)

Retrieve resolved list of Local-Core profiles with properties according to template, with resolved token values.

Parameters

massTbl

table suitable for syslib.mass command

includeRefs

if set to non-nil, the returned templates will also contain the refs table (for further processing)

hasEngineers

If non-nil, result will include 2 reader profiles (one with DataStudio 'readers', one without DataStudio permissions 'engineers'). If nil, the 'readers' profile has permissions for DataStudio.

hasVkpi

If non-nil, a VKPI profile will be created for each site

hasMES

If non-nil, an MES profile will be created for each site