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

View file

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

View file

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

View file

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

View file

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

View file

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