Default config files: add ending-line commas to avoid problem on editing

This commit is contained in:
Benjamin Renard 2020-11-25 15:59:36 +01:00
parent b93187f208
commit 335d6a4efa
6 changed files with 258 additions and 258 deletions

View file

@ -295,7 +295,7 @@ $GLOBALS['supannNomenclatures'] = array (
"X60" => "SECRETAIRE DE CABINET", "X60" => "SECRETAIRE DE CABINET",
"X70" => "ACMO H&S", "X70" => "ACMO H&S",
"X71" => "Chargé de service de prévention H&S", "X71" => "Chargé de service de prévention H&S",
"X80" => "Assesseur" "X80" => "Assesseur",
), ),
'typeEntite' => array ( 'typeEntite' => array (
"C000" => "Bureau du président", "C000" => "Bureau du président",
@ -387,7 +387,7 @@ $GLOBALS['supannNomenclatures'] = array (
"S312" => "Centre de recherche", "S312" => "Centre de recherche",
"S330" => "Campus", "S330" => "Campus",
"S340" => "Plate-forme de recherche ou plateau technique", "S340" => "Plate-forme de recherche ou plateau technique",
) ),
), ),
'UAI' => array ( 'UAI' => array (
'codeEtablissement' => array ( 'codeEtablissement' => array (
@ -750,7 +750,7 @@ $GLOBALS['supannNomenclatures'] = array (
"0911975C" => "UNIVERSITE EVRY VAL D ESSONNE", "0911975C" => "UNIVERSITE EVRY VAL D ESSONNE",
"0921204J" => "UNIVERSITE PARIS 10", "0921204J" => "UNIVERSITE PARIS 10",
"0911101C" => "UNIVERSITE PARIS 11", "0911101C" => "UNIVERSITE PARIS 11",
) ),
), ),
'SISE' => array ( 'SISE' => array (
'etuRegimeInscription' => array ( 'etuRegimeInscription' => array (
@ -1019,7 +1019,7 @@ $GLOBALS['supannNomenclatures'] = array (
'ZF' => "DIPLOME COMPTABILITE ET DE GESTION", 'ZF' => "DIPLOME COMPTABILITE ET DE GESTION",
'ZG' => "DIPL SUP COMPTABILITE ET DE GESTION", 'ZG' => "DIPL SUP COMPTABILITE ET DE GESTION",
'ZH' => "CERTIFICATS DE COMPETENCES", 'ZH' => "CERTIFICATS DE COMPETENCES",
) ),
), ),
'NCORPS' => array ( 'NCORPS' => array (
'empCorps' => array ( 'empCorps' => array (
@ -1490,7 +1490,7 @@ $GLOBALS['supannNomenclatures'] = array (
'998' => "MEDECIN DE L'E.N.- CONSEILLER TECHNIQUE", '998' => "MEDECIN DE L'E.N.- CONSEILLER TECHNIQUE",
'999' => "SANS CORRESPONDANCE CORPS", '999' => "SANS CORRESPONDANCE CORPS",
'***' => "CONVENTION ETOILE, DECLINAISON TOUT CODE", '***' => "CONVENTION ETOILE, DECLINAISON TOUT CODE",
) ),
), ),
'CNU' => array( 'CNU' => array(
'supannActivite' => array( 'supannActivite' => array(

View file

@ -23,7 +23,7 @@
$GLOBALS['LSobjects']['LScompany'] = array ( $GLOBALS['LSobjects']['LScompany'] = array (
'objectclass' => array( 'objectclass' => array(
'top', 'top',
'lscompany' 'lscompany',
), ),
'rdn' => 'ou', 'rdn' => 'ou',
'container_dn' => 'ou=companies', 'container_dn' => 'ou=companies',
@ -39,7 +39,7 @@ $GLOBALS['LSobjects']['LScompany'] = array (
'disableOnSuccessMsg' => true, 'disableOnSuccessMsg' => true,
'icon' => 'tech_info', 'icon' => 'tech_info',
'rights' => array ( 'rights' => array (
'admin' 'admin',
), ),
), ),
), ),
@ -53,17 +53,17 @@ $GLOBALS['LSobjects']['LScompany'] = array (
'html_type' => 'text', 'html_type' => 'text',
'required' => 1, 'required' => 1,
'check_data' => array ( 'check_data' => array (
'alphanumeric' => NULL 'alphanumeric' => NULL,
), ),
'view' => 1, 'view' => 1,
'rights' => array( 'rights' => array(
'user' => 'r', 'user' => 'r',
'admin' => 'w' 'admin' => 'w',
), ),
'form' => array ( 'form' => array (
'modify' => 0, 'modify' => 0,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -76,13 +76,13 @@ $GLOBALS['LSobjects']['LScompany'] = array (
'rights' => array( 'rights' => array(
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'w' 'godfather' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -94,26 +94,26 @@ $GLOBALS['LSobjects']['LScompany'] = array (
'html_options' => array( 'html_options' => array(
'selectable_object' => array( 'selectable_object' => array(
'object_type' => 'LSpeople', 'object_type' => 'LSpeople',
'value_attribute' => 'dn' 'value_attribute' => 'dn',
) ),
), ),
'validation' => array ( 'validation' => array (
array ( array (
'basedn' => '%{val}', 'basedn' => '%{val}',
'result' => 1, 'result' => 1,
'msg' => "One or several of these users don't exist." 'msg' => "One or several of these users don't exist.",
) ),
), ),
'multiple' => 1, 'multiple' => 1,
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
) ),
/* ----------- end -----------*/ /* ----------- end -----------*/
) ),
); );

View file

@ -23,18 +23,18 @@
$GLOBALS['LSobjects']['LSgroup'] = array ( $GLOBALS['LSobjects']['LSgroup'] = array (
'objectclass' => array( 'objectclass' => array(
'lsgroup', 'lsgroup',
'posixGroup' 'posixGroup',
), ),
'rdn' => 'cn', 'rdn' => 'cn',
'container_dn' => 'ou=groups', 'container_dn' => 'ou=groups',
'container_auto_create' => array( 'container_auto_create' => array(
'objectclass' => array( 'objectclass' => array(
'top', 'top',
'organizationalUnit' 'organizationalUnit',
), ),
'attrs' => array( 'attrs' => array(
'ou' => 'groups' 'ou' => 'groups',
) ),
), ),
'display_name_format' => '%{cn}', 'display_name_format' => '%{cn}',
'label' => 'Groups', 'label' => 'Groups',
@ -48,7 +48,7 @@ $GLOBALS['LSobjects']['LSgroup'] = array (
'disableOnSuccessMsg' => true, 'disableOnSuccessMsg' => true,
'icon' => 'tech_info', 'icon' => 'tech_info',
'rights' => array ( 'rights' => array (
'admin' 'admin',
), ),
), ),
), ),
@ -63,25 +63,25 @@ $GLOBALS['LSobjects']['LSgroup'] = array (
'required' => 1, 'required' => 1,
'check_data' => array ( 'check_data' => array (
'alphanumeric' => array( 'alphanumeric' => array(
'msg' => 'Name must contain alphanumeric values only.' 'msg' => 'Name must contain alphanumeric values only.',
), ),
), ),
'validation' => array ( 'validation' => array (
array ( array (
'filter' => 'cn=%{val}', 'filter' => 'cn=%{val}',
'result' => 0 'result' => 0,
) ),
), ),
'view' => 1, 'view' => 1,
'rights' => array( 'rights' => array(
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'r' 'godfather' => 'r',
), ),
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -95,17 +95,17 @@ $GLOBALS['LSobjects']['LSgroup'] = array (
'validation' => array ( 'validation' => array (
array ( array (
'filter' => 'gidNumber=%{val}', 'filter' => 'gidNumber=%{val}',
'result' => 0 'result' => 0,
) ),
), ),
'view' => 1, 'view' => 1,
'rights' => array( 'rights' => array(
'user' => 'r', 'user' => 'r',
'admin' => 'w' 'admin' => 'w',
), ),
'form' => array ( 'form' => array (
'modify' => 1 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -127,7 +127,7 @@ $GLOBALS['LSobjects']['LSgroup'] = array (
array( array(
'object_type' => 'LSsysaccount', 'object_type' => 'LSsysaccount',
'value_attribute' => 'dn', 'value_attribute' => 'dn',
) ),
), ),
'ordered' => true, 'ordered' => true,
), ),
@ -136,19 +136,19 @@ $GLOBALS['LSobjects']['LSgroup'] = array (
'validation' => array ( 'validation' => array (
array ( array (
'basedn' => '%{val}', 'basedn' => '%{val}',
'result' => 1 'result' => 1,
) ),
), ),
'view' => 1, 'view' => 1,
'rights' => array( 'rights' => array(
'admin' => 'w', 'admin' => 'w',
'admingroup' => 'w', 'admingroup' => 'w',
'godfather' => 'w' 'godfather' => 'w',
), ),
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -161,13 +161,13 @@ $GLOBALS['LSobjects']['LSgroup'] = array (
'rights' => array( 'rights' => array(
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'r' 'godfather' => 'r',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -179,27 +179,27 @@ $GLOBALS['LSobjects']['LSgroup'] = array (
'html_options' => array ( 'html_options' => array (
'selectable_object' => array( 'selectable_object' => array(
'object_type' => 'LSpeople', 'object_type' => 'LSpeople',
'value_attribute' => 'dn' 'value_attribute' => 'dn',
), ),
), ),
'validation' => array ( 'validation' => array (
array ( array (
'basedn' => '%{val}', 'basedn' => '%{val}',
'result' => 1, 'result' => 1,
'msg' => "One or several of these users don't exist." 'msg' => "One or several of these users don't exist.",
) ),
), ),
'multiple' => 0, 'multiple' => 0,
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
) ),
); );

View file

@ -34,11 +34,11 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'container_auto_create' => array( 'container_auto_create' => array(
'objectclass' => array( 'objectclass' => array(
'top', 'top',
'organizationalUnit' 'organizationalUnit',
), ),
'attrs' => array( 'attrs' => array(
'ou' => 'people' 'ou' => 'people',
) ),
), ),
'LSaddons' => array ( 'LSaddons' => array (
@ -54,7 +54,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'disableOnSuccessMsg' => true, 'disableOnSuccessMsg' => true,
'icon' => 'tech_info', 'icon' => 'tech_info',
'rights' => array ( 'rights' => array (
'admin' 'admin',
), ),
), ),
), ),
@ -67,7 +67,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'delimiter' => ';', 'delimiter' => ';',
'escape' => '"', 'escape' => '"',
'eol' => ';', 'eol' => ';',
'length' => 2 'length' => 2,
), ),
'fields' => array ( 'fields' => array (
'login' => 'uid', 'login' => 'uid',
@ -80,9 +80,9 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'shell' => 'loginShell', 'shell' => 'loginShell',
), ),
'generated_fields' => array ( 'generated_fields' => array (
'cn' => '%{personalTitle} %{givenName} %{sn}' 'cn' => '%{personalTitle} %{givenName} %{sn}',
) ),
) ),
), ),
'before_modify' => 'valid', 'before_modify' => 'valid',
@ -108,8 +108,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'rights' => array( 'rights' => array(
'self' => 'r', 'self' => 'r',
'admin' => 'w', 'admin' => 'w',
'admingroup' => 'w' 'admingroup' => 'w',
) ),
), ),
'godfather' => array( 'godfather' => array(
'label' => 'Godfather of ...', 'label' => 'Godfather of ...',
@ -120,9 +120,9 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'rights' => array( 'rights' => array(
'self' => 'r', 'self' => 'r',
'admin' => 'w', 'admin' => 'w',
'admingroup' => 'w' 'admingroup' => 'w',
) ),
) ),
), ),
// LSform // LSform
@ -143,8 +143,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'userPassword', 'userPassword',
'description', 'description',
'jpegPhoto', 'jpegPhoto',
'lsGodfatherDn' 'lsGodfatherDn',
) ),
), ),
'Posix' => array ( 'Posix' => array (
'label' => 'Posix', 'label' => 'Posix',
@ -158,7 +158,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'shadowMax', 'shadowMax',
'shadowInactive', 'shadowInactive',
'shadowLastChange', 'shadowLastChange',
) ),
), ),
'Samba' => array ( 'Samba' => array (
'label' => 'Samba', 'label' => 'Samba',
@ -178,8 +178,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'sambaPwdLastSet', 'sambaPwdLastSet',
'sambaPwdMustChange', 'sambaPwdMustChange',
'sambaPwdCanChange', 'sambaPwdCanChange',
) ),
) ),
), // fin Layout ), // fin Layout
'dataEntryForm' => array ( 'dataEntryForm' => array (
'simple' => array ( 'simple' => array (
@ -192,15 +192,15 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'sn', 'sn',
'cn', 'cn',
'mail', 'mail',
'userPassword' 'userPassword',
), ),
'defaultValues' => array ( 'defaultValues' => array (
'description' => 'Create with the simple data entry form', 'description' => 'Create with the simple data entry form',
'loginShell' => 'no', 'loginShell' => 'no',
'gidNumber' => '102001' 'gidNumber' => '102001',
) ),
) ),
) // fin dataEntryForm ), // fin dataEntryForm
), // fin LSform ), // fin LSform
'LSsearch' => array ( 'LSsearch' => array (
@ -209,7 +209,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'sn', 'sn',
'cn', 'cn',
'uid', 'uid',
'mail' 'mail',
), ),
'params' => array ( 'params' => array (
'recursive' => true, 'recursive' => true,
@ -218,12 +218,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
), ),
'predefinedFilters' => array ( 'predefinedFilters' => array (
'(jpegPhoto=*)' => 'With photo', '(jpegPhoto=*)' => 'With photo',
'(!(jpegPhoto=*))' => 'Without photo' '(!(jpegPhoto=*))' => 'Without photo',
), ),
'extraDisplayedColumns' => array ( 'extraDisplayedColumns' => array (
'mail' => array ( 'mail' => array (
'label' => 'Mail', 'label' => 'Mail',
'LSformat' => '%{mail}' 'LSformat' => '%{mail}',
), ),
), ),
'customActions' => array ( 'customActions' => array (
@ -234,8 +234,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'noConfirmation' => true, 'noConfirmation' => true,
'disableOnSuccessMsg' => true, 'disableOnSuccessMsg' => true,
'rights' => array ( 'rights' => array (
'admin' 'admin',
) ),
), ),
), ),
), ),
@ -253,13 +253,13 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'autoGenerateOnModify' => true, // default : false 'autoGenerateOnModify' => true, // default : false
'withoutAccent' => 1, 'withoutAccent' => 1,
'replaceSpaces' => '.', 'replaceSpaces' => '.',
'lowerCase' => 1 'lowerCase' => 1,
), ),
'required' => 1, 'required' => 1,
'check_data' => array ( 'check_data' => array (
'regex' => array( 'regex' => array(
'msg' => "Identifier must contain alphanumeric values, dots (.) and dashes (-) only.", 'msg' => "Identifier must contain alphanumeric values, dots (.) and dashes (-) only.",
'params' => array('regex' => '/^[a-zA-Z0-9-_\.]*$/') 'params' => array('regex' => '/^[a-zA-Z0-9-_\.]*$/'),
), ),
), ),
'validation' => array ( 'validation' => array (
@ -268,23 +268,23 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'result' => 0, 'result' => 0,
'msg' => 'This identifier is already used.', 'msg' => 'This identifier is already used.',
'except_current_object' => true, 'except_current_object' => true,
) ),
), ),
'rights' => array( 'rights' => array(
'self' => 'r', 'self' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'r' 'godfather' => 'r',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
), ),
'dependAttrs' => array( 'dependAttrs' => array(
'homeDirectory', 'homeDirectory',
'sambaHomePath', 'sambaHomePath',
'sambaProfilePath', 'sambaProfilePath',
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -298,21 +298,21 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'check_data' => array ( 'check_data' => array (
'alphanumeric' => array( 'alphanumeric' => array(
'params' => array('withAccents' => true), 'params' => array('withAccents' => true),
'msg' => 'The first name must contain alphanumeric values only.' 'msg' => 'The first name must contain alphanumeric values only.',
), ),
), ),
'rights' => array( 'rights' => array(
'self' => 'r', 'self' => 'r',
'users' => 'r', 'users' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'w' 'godfather' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
), ),
'onDisplay' => 'return_data' 'onDisplay' => 'return_data',
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -326,13 +326,13 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'self' => 'r', 'self' => 'r',
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'w' 'godfather' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -351,12 +351,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'self' => 'r', 'self' => 'r',
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'w' 'godfather' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
), ),
'dependAttrs' => array('gecos'), 'dependAttrs' => array('gecos'),
), ),
@ -371,26 +371,26 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'generate_value_format' => '%{givenName}.%{sn}@ls.com', 'generate_value_format' => '%{givenName}.%{sn}@ls.com',
'withoutAccent' => 1, 'withoutAccent' => 1,
'replaceSpaces' => '.', 'replaceSpaces' => '.',
'lowerCase' => 1 'lowerCase' => 1,
), ),
'required' => 1, 'required' => 1,
'check_data' => array ( 'check_data' => array (
'email' => array( 'email' => array(
'msg' => "Given email address is invalid.", 'msg' => "Given email address is invalid.",
'params' => array('checkDomain' => false) 'params' => array('checkDomain' => false),
), ),
), ),
'rights' => array( 'rights' => array(
'self' => 'r', 'self' => 'r',
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'w' 'godfather' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -403,8 +403,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'possible_values' => array( 'possible_values' => array(
'M.' => 'Mr', 'M.' => 'Mr',
'Mme' => 'Mrs', 'Mme' => 'Mrs',
'Mlle' => 'Ms' 'Mlle' => 'Ms',
) ),
), ),
'required' => 1, 'required' => 1,
'default_value' => 'M.', 'default_value' => 'M.',
@ -412,13 +412,13 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'self' => 'r', 'self' => 'r',
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'w' 'godfather' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -432,13 +432,13 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'self' => 'r', 'self' => 'r',
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'w' 'godfather' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -447,7 +447,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'label' => 'Password', 'label' => 'Password',
'ldap_type' => 'password', 'ldap_type' => 'password',
'ldap_options' => array ( 'ldap_options' => array (
'encode' => 'md5' 'encode' => 'md5',
), ),
'html_type' => 'password', 'html_type' => 'password',
'html_options' => array( 'html_options' => array(
@ -459,17 +459,17 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'chars' => array ( 'chars' => array (
array( array(
'nb' => 3, 'nb' => 3,
'chars' => 'abcdefijklmnopqrstuvwxyz' 'chars' => 'abcdefijklmnopqrstuvwxyz',
), ),
'0123456789', '0123456789',
'*$.:/_-[]{}=~' '*$.:/_-[]{}=~',
), ),
'mail' => array( 'mail' => array(
'send' => 1, 'send' => 1,
'ask' => 1, 'ask' => 1,
'subject' => "LSexample : Your new credentials.", 'subject' => "LSexample : Your new credentials.",
'msg' => "Your password has been changed.\nLogin : %{uid}\nNew password : %{password}", 'msg' => "Your password has been changed.\nLogin : %{uid}\nNew password : %{password}",
'mail_attr' => 'mail' 'mail_attr' => 'mail',
), ),
'confirmChange' => True, 'confirmChange' => True,
'confirmChangeQuestion' => "Do you confirm change of this user's password?", 'confirmChangeQuestion' => "Do you confirm change of this user's password?",
@ -486,14 +486,14 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'/[0-9]/', '/[0-9]/',
'/[^A-Za-z0-9]/', '/[^A-Za-z0-9]/',
), ),
'minValidRegex' => 3 'minValidRegex' => 3,
) ),
) ),
), ),
'required' => 1, 'required' => 1,
'rights' => array( 'rights' => array(
'self' => 'w', 'self' => 'w',
'admin' => 'w' 'admin' => 'w',
), ),
'dependAttrs' => array( 'dependAttrs' => array(
'sambaLMPassword', 'sambaLMPassword',
@ -504,9 +504,9 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1, 'create' => 1,
'lostPassword' => 1 'lostPassword' => 1,
), ),
'after_modify' => 'valid' 'after_modify' => 'valid',
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -517,12 +517,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'html_type' => 'text', 'html_type' => 'text',
'required' => 0, 'required' => 0,
'form' => array ( 'form' => array (
'lostPassword' => 1 'lostPassword' => 1,
), ),
'rights' => array( 'rights' => array(
'self' => 'w', 'self' => 'w',
'admin' => 'w' 'admin' => 'w',
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -537,28 +537,28 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'imagesize' => array( 'imagesize' => array(
'msg' => "Picture size is not valid.", 'msg' => "Picture size is not valid.",
'params' => array( 'params' => array(
'maxWidth' => 2000 'maxWidth' => 2000,
) ),
), ),
'filesize' => array( 'filesize' => array(
'msg' => "File size is not valid.", 'msg' => "File size is not valid.",
'params' => array( 'params' => array(
'maxSize' => 3000000 // taille du fichier en octets 'maxSize' => 3000000, // taille du fichier en octets
) ),
), ),
'imagefile' => array( 'imagefile' => array(
'msg' => "File type is not valid." 'msg' => "File type is not valid.",
) ),
), ),
'form' => array ( 'form' => array (
'modify' => 1 'modify' => 1,
), ),
'rights' => array( 'rights' => array(
'self' => 'w', 'self' => 'w',
'user' => 'r', 'user' => 'r',
'admin' => 'w', 'admin' => 'w',
'godfather' => 'w' 'godfather' => 'w',
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -570,25 +570,25 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'html_options' => array ( 'html_options' => array (
'selectable_object' => array( 'selectable_object' => array(
'object_type' => 'LSpeople', 'object_type' => 'LSpeople',
'value_attribute' => 'dn' 'value_attribute' => 'dn',
), ),
), ),
'validation' => array ( 'validation' => array (
array ( array (
'basedn' => '%{val}', 'basedn' => '%{val}',
'result' => 1, 'result' => 1,
'msg' => "One or several users don't exist." 'msg' => "One or several users don't exist.",
) ),
), ),
'multiple' => 1, 'multiple' => 1,
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -605,23 +605,23 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'generate_function' => 'generate_samba_uidNumber', 'generate_function' => 'generate_samba_uidNumber',
'check_data' => array ( 'check_data' => array (
'numeric' => array( 'numeric' => array(
'msg' => "The numeric identifier must be an integer." 'msg' => "The numeric identifier must be an integer.",
), ),
), ),
'validation' => array ( 'validation' => array (
array ( array (
'filter' => 'uidNumber=%{val}', 'filter' => 'uidNumber=%{val}',
'result' => 0, 'result' => 0,
'msg' => 'This uid is already used.' 'msg' => 'This uid is already used.',
) ),
), ),
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 0, 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -649,12 +649,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'filter' => 'cn=*a*', 'filter' => 'cn=*a*',
//'basedn' => 'o=company', //'basedn' => 'o=company',
'scope' => 'sub', 'scope' => 'sub',
) ),
)*/ )*/
) ),
) ),
) ),
) ),
), ),
'multiple' => false, 'multiple' => false,
'required' => 1, 'required' => 1,
@ -664,21 +664,21 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'object_type' => 'LSgroup', // 'object_type' : Permet definir le type d'objet recherchés 'object_type' => 'LSgroup', // 'object_type' : Permet definir le type d'objet recherchés
//'basedn' => 'o=company', // et d'utiliser les objectClass définis dans le fichier de configuration //'basedn' => 'o=company', // et d'utiliser les objectClass définis dans le fichier de configuration
'filter' => '(gidNumber=%{val})', // pour la recherche 'filter' => '(gidNumber=%{val})', // pour la recherche
'result' => 1 'result' => 1,
) ),
), ),
'rights' => array( 'rights' => array(
'admin' => 'w', 'admin' => 'w',
'godfather' => 'r' 'godfather' => 'r',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
), ),
'dependAttrs' => array( 'dependAttrs' => array(
'sambaPrimaryGroupSID', 'sambaPrimaryGroupSID',
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -689,19 +689,19 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'ldap_type' => 'boolean', 'ldap_type' => 'boolean',
'ldap_options' => array ( 'ldap_options' => array (
'true_value' => '/bin/bash', 'true_value' => '/bin/bash',
'false_value' => '/bin/false' 'false_value' => '/bin/false',
), ),
'html_type' => 'boolean', 'html_type' => 'boolean',
'required' => 1, 'required' => 1,
'default_value' => 'no', 'default_value' => 'no',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -727,17 +727,17 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'html_options' => array( 'html_options' => array(
'generate_value_format' => '%{cn~}', 'generate_value_format' => '%{cn~}',
'autoGenerateOnModify' => true, // default : false 'autoGenerateOnModify' => true, // default : false
'autoGenerateOnCreate' => true // default : false 'autoGenerateOnCreate' => true, // default : false
), ),
'required' => 1, 'required' => 1,
'generate_value_format' => '%{cn~}', 'generate_value_format' => '%{cn~}',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array( 'form' => array(
'modify' => 1, 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -756,12 +756,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 0, 'required' => 0,
'generate_function' => 'generate_shadowExpire_from_sambaPwdMustChange', 'generate_function' => 'generate_shadowExpire_from_sambaPwdMustChange',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array( 'form' => array(
'modify' => 1, 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -781,13 +781,13 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
), ),
'required' => 0, 'required' => 0,
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array( 'form' => array(
'create' => 1, 'create' => 1,
'modify' => 1, 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -807,13 +807,13 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
), ),
'required' => 0, 'required' => 0,
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array( 'form' => array(
'create' => 1, 'create' => 1,
'modify' => 1, 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -829,7 +829,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'generate_function' => 'generate_shadowLastChange', 'generate_function' => 'generate_shadowLastChange',
'no_value_label' => 'Never', 'no_value_label' => 'Never',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
), ),
@ -847,12 +847,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'generate_function' => 'generate_user_sambaSID', 'generate_function' => 'generate_user_sambaSID',
'rights' => array( 'rights' => array(
'admin' => 'r' 'admin' => 'r',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -864,12 +864,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'generate_function' => 'generate_sambaPrimaryGroupSID', 'generate_function' => 'generate_sambaPrimaryGroupSID',
'rights' => array( 'rights' => array(
'admin' => 'r' 'admin' => 'r',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -881,13 +881,13 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'default_value' => array('U'), 'default_value' => array('U'),
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'create' => 1, 'create' => 1,
'modify' => 1 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -899,12 +899,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'default_value' => 'Z:', 'default_value' => 'Z:',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -916,12 +916,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'generate_function' => 'generate_sambaHomePath', 'generate_function' => 'generate_sambaHomePath',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -933,12 +933,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'generate_function' => 'generate_sambaProfilePath', 'generate_function' => 'generate_sambaProfilePath',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -950,12 +950,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'default_value' => 'logon.bat', 'default_value' => 'logon.bat',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -973,12 +973,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
), ),
'no_value_label' => 'Never', 'no_value_label' => 'Never',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -996,12 +996,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
), ),
'no_value_label' => 'Never', 'no_value_label' => 'Never',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -1023,12 +1023,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
), ),
'no_value_label' => 'Default (never)', 'no_value_label' => 'Default (never)',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -1040,8 +1040,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'generate_function' => 'generate_sambaLMPassword', 'generate_function' => 'generate_sambaLMPassword',
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -1053,8 +1053,8 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'required' => 1, 'required' => 1,
'generate_function' => 'generate_sambaNTPassword', 'generate_function' => 'generate_sambaNTPassword',
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -1073,12 +1073,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'generate_function' => 'generate_sambaPwdLastSet', 'generate_function' => 'generate_sambaPwdLastSet',
'no_value_label' => 'Never', 'no_value_label' => 'Never',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 0 'modify' => 0,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -1100,12 +1100,12 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
), ),
'no_value_label' => 'Default (never)', 'no_value_label' => 'Default (never)',
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -1129,14 +1129,14 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'no_value_label' => 'Default (whenever)', 'no_value_label' => 'Default (whenever)',
'multiple' => true, 'multiple' => true,
'rights' => array( 'rights' => array(
'admin' => 'w' 'admin' => 'w',
), ),
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1 'modify' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
) // Fin args ), // Fin args
); );

View file

@ -40,7 +40,7 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
'disableOnSuccessMsg' => true, 'disableOnSuccessMsg' => true,
'icon' => 'tech_info', 'icon' => 'tech_info',
'rights' => array ( 'rights' => array (
'admin' 'admin',
), ),
), ),
), ),
@ -80,7 +80,7 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
'check_data' => array ( 'check_data' => array (
'regex' => array( 'regex' => array(
'msg' => "Identifier must contain alphanumeric values, dots (.) and dashes (-) only.", 'msg' => "Identifier must contain alphanumeric values, dots (.) and dashes (-) only.",
'params' => array('regex' => '/^[a-zA-Z0-9-_\.]*$/') 'params' => array('regex' => '/^[a-zA-Z0-9-_\.]*$/'),
), ),
), ),
'validation' => array ( 'validation' => array (
@ -89,7 +89,7 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
'result' => 0, 'result' => 0,
'msg' => 'This identifier is already used.', 'msg' => 'This identifier is already used.',
'except_current_object' => true, 'except_current_object' => true,
) ),
), ),
'rights' => array( 'rights' => array(
'self' => 'r', 'self' => 'r',
@ -99,7 +99,7 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
), ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -109,7 +109,7 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
'label' => 'Password', 'label' => 'Password',
'ldap_type' => 'password', 'ldap_type' => 'password',
'ldap_options' => array ( 'ldap_options' => array (
'encode' => 'ssha' 'encode' => 'ssha',
), ),
'html_type' => 'password', 'html_type' => 'password',
'html_options' => array( 'html_options' => array(
@ -120,10 +120,10 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
'chars' => array ( 'chars' => array (
array( array(
'nb' => 3, 'nb' => 3,
'chars' => 'abcdefijklmnopqrstuvwxyz' 'chars' => 'abcdefijklmnopqrstuvwxyz',
), ),
'0123456789', '0123456789',
'*$.:/_-[]{}=~' '*$.:/_-[]{}=~',
), ),
), ),
'check_data' => array( 'check_data' => array(
@ -131,18 +131,18 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
'msg' => 'This password must contain at least 12 characters.', 'msg' => 'This password must contain at least 12 characters.',
'params' => array( 'params' => array(
'minLength' => 12, 'minLength' => 12,
) ),
) ),
), ),
'required' => 1, 'required' => 1,
'rights' => array( 'rights' => array(
'self' => 'w', 'self' => 'w',
'admin' => 'w' 'admin' => 'w',
), ),
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1, 'create' => 1,
'lostPassword' => 1 'lostPassword' => 1,
), ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
@ -161,10 +161,10 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
'view' => 1, 'view' => 1,
'form' => array ( 'form' => array (
'modify' => 1, 'modify' => 1,
'create' => 1 'create' => 1,
) ),
), ),
/* ----------- end -----------*/ /* ----------- end -----------*/
) // Fin args ), // Fin args
); );

View file

@ -46,7 +46,7 @@ $GLOBALS['LSconfig'] = array(
'basedn' => 'o=ls', 'basedn' => 'o=ls',
'options' => array(), 'options' => array(),
'filter' => '(objectClass=*)', 'filter' => '(objectClass=*)',
'scope' => 'sub' 'scope' => 'sub',
), ),
'LSauth' => array ( 'LSauth' => array (
//'method' => 'basic', // Auth method : basic(default), HTTP, CAS or anonymous //'method' => 'basic', // Auth method : basic(default), HTTP, CAS or anonymous
@ -69,9 +69,9 @@ $GLOBALS['LSconfig'] = array(
'ou=people,o=ls' => array ( 'ou=people,o=ls' => array (
'cn=adminldap,ou=groups,o=ls' => array ( 'cn=adminldap,ou=groups,o=ls' => array (
'attr' => 'uniqueMember', 'attr' => 'uniqueMember',
'LSobject' => 'LSgroup' 'LSobject' => 'LSgroup',
) ),
) ),
), ),
'godfather' => array ( 'godfather' => array (
'label' => 'Godfather', 'label' => 'Godfather',
@ -79,13 +79,13 @@ $GLOBALS['LSconfig'] = array(
'LSpeople' => array ( 'LSpeople' => array (
'attr' => 'lsGodfatherDn', 'attr' => 'lsGodfatherDn',
'attr_value' => '%{dn}', 'attr_value' => '%{dn}',
'basedn' => 'ou=people,o=ls' 'basedn' => 'ou=people,o=ls',
), ),
'LSgroup' => array ( 'LSgroup' => array (
'filter' => '(lsGodfatherDn=%{dn})' 'filter' => '(lsGodfatherDn=%{dn})',
) ),
) ),
) ),
), ),
'cacheLSprofiles' => true, 'cacheLSprofiles' => true,
'cacheSearch' => true, 'cacheSearch' => true,
@ -100,14 +100,14 @@ $GLOBALS['LSconfig'] = array(
'recoveryEmailSender' => 'noreply-recover@ls.com', 'recoveryEmailSender' => 'noreply-recover@ls.com',
'recoveryHashMail' => array( 'recoveryHashMail' => array(
'subject' => 'LSexample : Recovering your password.', 'subject' => 'LSexample : Recovering your password.',
'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}" 'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}",
), ),
'newPasswordMail' => array( 'newPasswordMail' => array(
'subject' => 'LSexample : Your new credentials.', 'subject' => 'LSexample : Your new credentials.',
'msg' => "Your new password : %{mdp}" 'msg' => "Your new password : %{mdp}",
)
), ),
'emailSender' => 'noreply@ls.com' ),
'emailSender' => 'noreply@ls.com',
), ),
array ( array (
'name' => 'LSexample - multi-company', 'name' => 'LSexample - multi-company',
@ -121,7 +121,7 @@ $GLOBALS['LSconfig'] = array(
'basedn' => 'o=ls', 'basedn' => 'o=ls',
'options' => array(), 'options' => array(),
'filter' => '(objectClass=*)', 'filter' => '(objectClass=*)',
'scope' => 'sub' 'scope' => 'sub',
), ),
'LSauth' => array ( 'LSauth' => array (
'LSobjects' => array('LSpeople'), 'LSobjects' => array('LSpeople'),
@ -132,15 +132,15 @@ $GLOBALS['LSconfig'] = array(
'uid=eeggs,ou=people,o=ls' => NULL, 'uid=eeggs,ou=people,o=ls' => NULL,
'cn=adminldap,ou=groups,o=ls' => array ( 'cn=adminldap,ou=groups,o=ls' => array (
'attr' => 'uniqueMember', 'attr' => 'uniqueMember',
'LSobject' => 'LSgroup' 'LSobject' => 'LSgroup',
) ),
) ),
), ),
'admingroup' => array ( 'admingroup' => array (
'ou=company1,ou=companies,o=ls' => array ( 'ou=company1,ou=companies,o=ls' => array (
'uid=user1,ou=people,ou=company1,ou=companies,o=ls' => NULL 'uid=user1,ou=people,ou=company1,ou=companies,o=ls' => NULL,
) ),
) ),
), ),
'subDnLabel' => 'Company', 'subDnLabel' => 'Company',
'subDn' => array( 'subDn' => array(
@ -150,17 +150,17 @@ $GLOBALS['LSconfig'] = array(
'LSpeople', 'LSpeople',
'LSgroup', 'LSgroup',
'LScompany', 'LScompany',
'LSsysaccount' 'LSsysaccount',
) ),
), ),
'LSobject' => array( 'LSobject' => array(
'LScompany' => array( 'LScompany' => array(
'LSobjects' => array( 'LSobjects' => array(
'LSpeople', 'LSpeople',
'LSgroup' 'LSgroup',
) ),
) ),
) ),
), ),
'cacheLSprofiles' => true, 'cacheLSprofiles' => true,
'cacheSearch' => true, 'cacheSearch' => true,
@ -171,16 +171,16 @@ $GLOBALS['LSconfig'] = array(
'recoveryEmailSender' => 'noreply-recover@lsexample.net', 'recoveryEmailSender' => 'noreply-recover@lsexample.net',
'recoveryHashMail' => array( 'recoveryHashMail' => array(
'subject' => 'LSexample : Recovering your password.', 'subject' => 'LSexample : Recovering your password.',
'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}" 'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}",
), ),
'newPasswordMail' => array( 'newPasswordMail' => array(
'subject' => 'LSexample : Your new credentials.', 'subject' => 'LSexample : Your new credentials.',
'msg' => "Your new password : %{mdp}" 'msg' => "Your new password : %{mdp}",
) ),
),
'emailSender' => 'noreply@lsexample.net',
),
), ),
'emailSender' => 'noreply@lsexample.net'
)
)
); );
// Interface // Interface