From 92594d45d2eb334312b0916071dfe5c601f11cd9 Mon Sep 17 00:00:00 2001 From: kakwa Date: Mon, 20 Jul 2015 23:26:11 +0200 Subject: [PATCH] adding documentation on roles configuration and bakends configuration --- docs/deploy.rst | 93 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/docs/deploy.rst b/docs/deploy.rst index 5aa6e40..219cf3d 100644 --- a/docs/deploy.rst +++ b/docs/deploy.rst @@ -205,6 +205,84 @@ Available autofill functions: Roles Configuration ~~~~~~~~~~~~~~~~~~~ +The roles configuration is done in a yaml file (roles.yml by default). + +Mandatory parameters +^^^^^^^^^^^^^^^^^^^^ + +Roles are seen as an aggregate of groups: + +.. sourcecode:: yaml + + : + display_name: + description: + backends_groups: # list of backends + : # list of groups in backend + - + - + : + - + - + +.. warning:: must be unique, LdapCherry won't start if it's not + +Defining LdapCherry Administrator role +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +One of the declared roles must be tagged to be LdapCherry administrators. + +Doing so is done by setting **LC_admins** to **True** for the selected role: + +.. sourcecode:: yaml + + : + display_name: + description: + + LC_admins: True + + backends_groups: # list of backends + : # list of groups in backend + - + - + : + - + - + +Nesting roles +^^^^^^^^^^^^^ + +LdapCherry handles roles nesting: + +.. sourcecode:: yaml + + parent_role: + display_name: Role parent + description: The parent role + backends_groups: + backend_id_1: + - b1_group_1 + - b1_group_2 + backend_id_2: + - b2_group_1 + - b2_group_2 + subroles: + child_role_1: + display_name: Child role 1 + description: The first Child Role + backends_groups: + backend_id_1: + - b1_group_3 + child_role_2: + display_name: Child role 2 + description: The second Child Role + backends_groups: + backend_id_1: + - b1_group_4 + +In that case, child_role_1 and child_role_2 will contain all groups of parent_role plus their own specific groups. + Main Configuration ------------------ @@ -259,6 +337,21 @@ example: Backends ~~~~~~~~ +Backends are configure in the **backends** section, the format is the following: + + +.. sourcecode:: ini + + [backends] + + # backend python module path + .module = 'python.module.path' + + # parameters of the module instance for backend . + . = + +It's possible to instanciate the same module several times. + Authentication and sessions ~~~~~~~~~~~~~~~~~~~~~~~~~~~