Loading config/autoload/unicaen-app.local.php.dist 0 → 100644 +121 −0 Changes for config/autoload/unicaen-app.local.php.dist: 121 added lines, 0 removed lines. Original line number Diff line number Diff line <?php /** * Configuration locale du module UnicaenApp. * * If you have a ./config/autoload/ directory set up for your project, * drop this config file in it and change the values as you wish. */ return array( 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'apropos' => ['sitemap' => false,], 'contact' => ['sitemap' => false,], 'plan' => ['sitemap' => false,], 'mentions-legales' => [ 'label' => _("Mentions légales"), 'title' => _("Mentions légales"), 'uri' => "http://www.unicaen.fr/acces-direct/mentions-legales/", 'class' => 'ml', 'visible' => false, 'footer' => true, 'sitemap' => false, 'resource' => 'controller/UnicaenApp\Controller\Application:mentions-legales', 'order' => 1004, ], 'informatique-et-libertes' => [ 'label' => _("Vie privée"), 'title' => _("Vie privée"), 'uri' => "http://www.unicaen.fr/acces-direct/informatique-et-libertes/", 'class' => 'il', 'visible' => false, 'footer' => true, 'sitemap' => false, 'resource' => 'controller/UnicaenApp\Controller\Application:informatique-et-libertes', 'order' => 1005, ], ], ], ], ], 'unicaen-app' => [ 'app_infos' => [ 'contact' => ['mail' => "assistance-emc2@unicaen.fr", /*'tel' => "01 02 03 04 05"*/], ], /** Connexion à l'annuaire LDAP (NB: compte admin requis) */ 'ldap' => [ 'connection' => [ 'default' => [ 'params' => [ 'host' => 'ldap.XXXXX.fr', 'username' => "uid=XXXX,ou=system,dc=XXXX,dc=fr", 'password' => "XXXXX", 'baseDn' => "ou=people,dc=XXXX,dc=fr", 'bindRequiresDn' => true, //dé-commenter la ligne correspondant à votre situation // 'accountFilterFormat' => "(&(objectClass=posixAccount)(supannAliasLogin=%s))", // 'accountFilterFormat' => "(&(objectClass=posixAccount)(uid=%s))", 'port' => 389, ] ] ], /** * Paramètres de fonctionnement LDAP. */ 'dn' => [ 'UTILISATEURS_BASE_DN' => 'ou=people,dc=XXXX,dc=fr', 'UTILISATEURS_DESACTIVES_BASE_DN' => 'ou=deactivated,dc=XXXX,dc=fr', 'GROUPS_BASE_DN' => 'ou=groups,dc=XXXX,dc=fr', 'STRUCTURES_BASE_DN' => 'ou=structures,dc=XXXX,dc=fr', ], 'filters' => [ //dé-commenter la ligne correspondant à votre situation // 'LOGIN_FILTER' => '(supannAliasLogin=%s)', // 'LOGIN_FILTER' => '(uid=%s)', 'UTILISATEUR_STD_FILTER' => '(|(uid=p*)(&(uid=e*)(eduPersonAffiliation=student)))', 'CN_FILTER' => '(cn=%s)', 'NAME_FILTER' => '(cn=%s*)', 'UID_FILTER' => '(uid=%s)', 'NO_INDIVIDU_FILTER' => '(supannEmpId=%08s)', 'AFFECTATION_FILTER' => '(&(uid=*)(eduPersonOrgUnitDN=%s))', 'AFFECTATION_CSTRUCT_FILTER' => '(&(uid=*)(|(ucbnSousStructure=%s;*)(supannAffectation=%s;*)))', 'LOGIN_OR_NAME_FILTER' => '(|(supannAliasLogin=%s)(cn=%s*))', 'MEMBERSHIP_FILTER' => '(memberOf=%s)', 'AFFECTATION_ORG_UNIT_FILTER' => '(eduPersonOrgUnitDN=%s)', 'AFFECTATION_ORG_UNIT_PRIMARY_FILTER' => '(eduPersonPrimaryOrgUnitDN=%s)', 'ROLE_FILTER' => '(supannRoleEntite=[role={SUPANN}%s][type={SUPANN}%s][code=%s]*)', 'PROF_STRUCTURE' => '(&(eduPersonAffiliation=teacher)(eduPersonOrgUnitDN=%s))', 'FILTER_STRUCTURE_DN' => '(%s)', 'FILTER_STRUCTURE_CODE_ENTITE' => '(supannCodeEntite=%s)', 'FILTER_STRUCTURE_CODE_ENTITE_PARENT' => '(supannCodeEntiteParent=%s)', ], ], /** * Mode maintenance (application indisponible) */ 'maintenance' => [ // activation (true: activé, false: désactivé) 'enable' => false, // liste blanche des adresses IP clientes non concernées 'white_list' => [ // ['127.0.0.1'], // localhost // ['10.60.11.88'], // Bertrand ], ], ], 'asset_manager' => array( // 'caching' => array( // https://github.com/RWOverdijk/AssetManager/wiki/Caching // 'default' => array( // 'cache' => 'Apc', // ), // ), ), ); No newline at end of file config/autoload/unicaen-authentification.local.php.dist 0 → 100644 +49 −0 Changes for config/autoload/unicaen-authentification.local.php.dist: 49 added lines, 0 removed lines. Original line number Diff line number Diff line <?php return [ 'unicaen-auth' => [ 'cas' => [ // laisser vide si pas de cas 'connection' => [ 'default' => [ 'params' => [ 'hostname' => 'cas.XXXX.fr', 'port' => XXX, 'version' => "2.0", 'uri' => "", 'debug' => false, ], ], ], 'form_skip' => true, ], 'local' => [ 'order' => 2, 'enabled' => true, 'description' => "Utilisez ce formulaire si vous possédez un compte LDAP établissement ou un compte local dédié à l'application.", 'db' => [ // doit être activé pour que l'usurpation fonctionne (cf. Authentication/Storage/Db::read()) :-/ 'enabled' => true, ], 'ldap' => [ 'enabled' => true, //de commenter en fonction de situation //'username' => 'supannaliaslogin', //'username' => 'uid', ], ], 'shib' => [ 'order' => 3, 'enabled' => false, 'logout_url' => '/Shibboleth.sso/Logout?return=', // NB: '?return=' semble obligatoire! ], /** * Identifiants de connexion autorisés à faire de l'usurpation d'identité. * (NB: à réserver exclusivement aux tests.) */ 'usurpation_allowed_usernames' => [ ], ], ]; config/autoload/unicaen-ldap.local.php.dist 0 → 100644 +15 −0 Changes for config/autoload/unicaen-ldap.local.php.dist: 15 added lines, 0 removed lines. Original line number Diff line number Diff line <?php return [ 'unicaen-ldap' => [ 'host' => 'ldap.XXXX.XX', 'username' => "uid=XXXX,ou=system,dc=XXXXX,dc=fr", 'password' => "XXXX", 'baseDn' => "ou=people,dc=XXXXX,dc=fr", 'bindRequiresDn' => true, //dé-commenter la ligne correspondant à votre situation // 'accountFilterFormat' => "(&(objectClass=posixAccount)(supannAliasLogin=%s))", // 'accountFilterFormat' => "(&(objectClass=posixAccount)(uid=%s))", 'port' => 389, ] ]; documentation/SQL/002_CARRIERE.sql +1 −1 Changes for documentation/SQL/002_CARRIERE.sql: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -379,7 +379,7 @@ WITH d(CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) AS ( SELECT 'CorpsAvecAgent', 'Affichage seulement des corps avec agent', null, 'Boolean', 'true', 100 UNION SELECT 'GradeAvecAgent', 'Affichage seulement des grades avec agent', null, 'Boolean', 'true', 200 UNION SELECT 'CorrespondanceAvecAgent', 'Affichage seulement des correspondance ayant un agent', null, 'Boolean', 'true', 300 UNION SELECT 'ACTIF_ONLY','Ne considérer que les Corps/Correspondances/Grades actifs',null,'Boolean',true, 1000 SELECT 'ACTIF_ONLY','Ne considérer que les Corps/Correspondances/Grades actifs',null,'Boolean','true', 1000 ) SELECT cp.id, d.CODE, d.LIBELLE, d.DESCRIPTION, d.VALEURS_POSSIBLES, d.VALEUR, d.ORDRE FROM d Loading documentation/SQL/004_ELEMENT.sql +1 −1 Changes for documentation/SQL/004_ELEMENT.sql: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -413,7 +413,7 @@ FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'competencetheme'; INSERT INTO unicaen_privilege_categorie (code, libelle, namespace, ordre) VALUES ('competencereferentiel', 'Gestion des référentiels de compétences', 70800, 'Element\Provider\Privilege'); VALUES ('competencereferentiel', 'Gestion des référentiels de compétences', 'Element\Provider\Privilege', 70800); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'competencereferentiel_index', 'Accéder à l''index', 10 UNION Loading Loading
config/autoload/unicaen-app.local.php.dist 0 → 100644 +121 −0 Changes for config/autoload/unicaen-app.local.php.dist: 121 added lines, 0 removed lines. Original line number Diff line number Diff line <?php /** * Configuration locale du module UnicaenApp. * * If you have a ./config/autoload/ directory set up for your project, * drop this config file in it and change the values as you wish. */ return array( 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'apropos' => ['sitemap' => false,], 'contact' => ['sitemap' => false,], 'plan' => ['sitemap' => false,], 'mentions-legales' => [ 'label' => _("Mentions légales"), 'title' => _("Mentions légales"), 'uri' => "http://www.unicaen.fr/acces-direct/mentions-legales/", 'class' => 'ml', 'visible' => false, 'footer' => true, 'sitemap' => false, 'resource' => 'controller/UnicaenApp\Controller\Application:mentions-legales', 'order' => 1004, ], 'informatique-et-libertes' => [ 'label' => _("Vie privée"), 'title' => _("Vie privée"), 'uri' => "http://www.unicaen.fr/acces-direct/informatique-et-libertes/", 'class' => 'il', 'visible' => false, 'footer' => true, 'sitemap' => false, 'resource' => 'controller/UnicaenApp\Controller\Application:informatique-et-libertes', 'order' => 1005, ], ], ], ], ], 'unicaen-app' => [ 'app_infos' => [ 'contact' => ['mail' => "assistance-emc2@unicaen.fr", /*'tel' => "01 02 03 04 05"*/], ], /** Connexion à l'annuaire LDAP (NB: compte admin requis) */ 'ldap' => [ 'connection' => [ 'default' => [ 'params' => [ 'host' => 'ldap.XXXXX.fr', 'username' => "uid=XXXX,ou=system,dc=XXXX,dc=fr", 'password' => "XXXXX", 'baseDn' => "ou=people,dc=XXXX,dc=fr", 'bindRequiresDn' => true, //dé-commenter la ligne correspondant à votre situation // 'accountFilterFormat' => "(&(objectClass=posixAccount)(supannAliasLogin=%s))", // 'accountFilterFormat' => "(&(objectClass=posixAccount)(uid=%s))", 'port' => 389, ] ] ], /** * Paramètres de fonctionnement LDAP. */ 'dn' => [ 'UTILISATEURS_BASE_DN' => 'ou=people,dc=XXXX,dc=fr', 'UTILISATEURS_DESACTIVES_BASE_DN' => 'ou=deactivated,dc=XXXX,dc=fr', 'GROUPS_BASE_DN' => 'ou=groups,dc=XXXX,dc=fr', 'STRUCTURES_BASE_DN' => 'ou=structures,dc=XXXX,dc=fr', ], 'filters' => [ //dé-commenter la ligne correspondant à votre situation // 'LOGIN_FILTER' => '(supannAliasLogin=%s)', // 'LOGIN_FILTER' => '(uid=%s)', 'UTILISATEUR_STD_FILTER' => '(|(uid=p*)(&(uid=e*)(eduPersonAffiliation=student)))', 'CN_FILTER' => '(cn=%s)', 'NAME_FILTER' => '(cn=%s*)', 'UID_FILTER' => '(uid=%s)', 'NO_INDIVIDU_FILTER' => '(supannEmpId=%08s)', 'AFFECTATION_FILTER' => '(&(uid=*)(eduPersonOrgUnitDN=%s))', 'AFFECTATION_CSTRUCT_FILTER' => '(&(uid=*)(|(ucbnSousStructure=%s;*)(supannAffectation=%s;*)))', 'LOGIN_OR_NAME_FILTER' => '(|(supannAliasLogin=%s)(cn=%s*))', 'MEMBERSHIP_FILTER' => '(memberOf=%s)', 'AFFECTATION_ORG_UNIT_FILTER' => '(eduPersonOrgUnitDN=%s)', 'AFFECTATION_ORG_UNIT_PRIMARY_FILTER' => '(eduPersonPrimaryOrgUnitDN=%s)', 'ROLE_FILTER' => '(supannRoleEntite=[role={SUPANN}%s][type={SUPANN}%s][code=%s]*)', 'PROF_STRUCTURE' => '(&(eduPersonAffiliation=teacher)(eduPersonOrgUnitDN=%s))', 'FILTER_STRUCTURE_DN' => '(%s)', 'FILTER_STRUCTURE_CODE_ENTITE' => '(supannCodeEntite=%s)', 'FILTER_STRUCTURE_CODE_ENTITE_PARENT' => '(supannCodeEntiteParent=%s)', ], ], /** * Mode maintenance (application indisponible) */ 'maintenance' => [ // activation (true: activé, false: désactivé) 'enable' => false, // liste blanche des adresses IP clientes non concernées 'white_list' => [ // ['127.0.0.1'], // localhost // ['10.60.11.88'], // Bertrand ], ], ], 'asset_manager' => array( // 'caching' => array( // https://github.com/RWOverdijk/AssetManager/wiki/Caching // 'default' => array( // 'cache' => 'Apc', // ), // ), ), ); No newline at end of file
config/autoload/unicaen-authentification.local.php.dist 0 → 100644 +49 −0 Changes for config/autoload/unicaen-authentification.local.php.dist: 49 added lines, 0 removed lines. Original line number Diff line number Diff line <?php return [ 'unicaen-auth' => [ 'cas' => [ // laisser vide si pas de cas 'connection' => [ 'default' => [ 'params' => [ 'hostname' => 'cas.XXXX.fr', 'port' => XXX, 'version' => "2.0", 'uri' => "", 'debug' => false, ], ], ], 'form_skip' => true, ], 'local' => [ 'order' => 2, 'enabled' => true, 'description' => "Utilisez ce formulaire si vous possédez un compte LDAP établissement ou un compte local dédié à l'application.", 'db' => [ // doit être activé pour que l'usurpation fonctionne (cf. Authentication/Storage/Db::read()) :-/ 'enabled' => true, ], 'ldap' => [ 'enabled' => true, //de commenter en fonction de situation //'username' => 'supannaliaslogin', //'username' => 'uid', ], ], 'shib' => [ 'order' => 3, 'enabled' => false, 'logout_url' => '/Shibboleth.sso/Logout?return=', // NB: '?return=' semble obligatoire! ], /** * Identifiants de connexion autorisés à faire de l'usurpation d'identité. * (NB: à réserver exclusivement aux tests.) */ 'usurpation_allowed_usernames' => [ ], ], ];
config/autoload/unicaen-ldap.local.php.dist 0 → 100644 +15 −0 Changes for config/autoload/unicaen-ldap.local.php.dist: 15 added lines, 0 removed lines. Original line number Diff line number Diff line <?php return [ 'unicaen-ldap' => [ 'host' => 'ldap.XXXX.XX', 'username' => "uid=XXXX,ou=system,dc=XXXXX,dc=fr", 'password' => "XXXX", 'baseDn' => "ou=people,dc=XXXXX,dc=fr", 'bindRequiresDn' => true, //dé-commenter la ligne correspondant à votre situation // 'accountFilterFormat' => "(&(objectClass=posixAccount)(supannAliasLogin=%s))", // 'accountFilterFormat' => "(&(objectClass=posixAccount)(uid=%s))", 'port' => 389, ] ];
documentation/SQL/002_CARRIERE.sql +1 −1 Changes for documentation/SQL/002_CARRIERE.sql: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -379,7 +379,7 @@ WITH d(CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) AS ( SELECT 'CorpsAvecAgent', 'Affichage seulement des corps avec agent', null, 'Boolean', 'true', 100 UNION SELECT 'GradeAvecAgent', 'Affichage seulement des grades avec agent', null, 'Boolean', 'true', 200 UNION SELECT 'CorrespondanceAvecAgent', 'Affichage seulement des correspondance ayant un agent', null, 'Boolean', 'true', 300 UNION SELECT 'ACTIF_ONLY','Ne considérer que les Corps/Correspondances/Grades actifs',null,'Boolean',true, 1000 SELECT 'ACTIF_ONLY','Ne considérer que les Corps/Correspondances/Grades actifs',null,'Boolean','true', 1000 ) SELECT cp.id, d.CODE, d.LIBELLE, d.DESCRIPTION, d.VALEURS_POSSIBLES, d.VALEUR, d.ORDRE FROM d Loading
documentation/SQL/004_ELEMENT.sql +1 −1 Changes for documentation/SQL/004_ELEMENT.sql: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -413,7 +413,7 @@ FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'competencetheme'; INSERT INTO unicaen_privilege_categorie (code, libelle, namespace, ordre) VALUES ('competencereferentiel', 'Gestion des référentiels de compétences', 70800, 'Element\Provider\Privilege'); VALUES ('competencereferentiel', 'Gestion des référentiels de compétences', 'Element\Provider\Privilege', 70800); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'competencereferentiel_index', 'Accéder à l''index', 10 UNION Loading