diff --git a/config/unicaen-auth.global.php.dist b/config/unicaen-auth.global.php.dist new file mode 100644 index 0000000000000000000000000000000000000000..3c33814e4fdf960a92a814779527f4f37a7dc2a7 --- /dev/null +++ b/config/unicaen-auth.global.php.dist @@ -0,0 +1,40 @@ +<?php +/** + * UnicaenAuth Global Configuration + * + * If you have a ./config/autoload/ directory set up for your project, you can + * drop this config file in it and change the values as you wish. + */ +$settings = array( + 'bjyauthorize' => array( + // default role for unauthenticated users + 'default_role' => false, + ), + /** + * Mot de passe sésame, chiffré avec l'algo Bcrypt + * $bcrypt = new \Zend\Crypt\Password\Bcrypt(); + * echo $bcrypt->create('votreMotDePasseSesame'); + */ + 'sesame_password' => false, + /** + * Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit + * être enregistré/mis à jour dans la table des utilisateurs de l'appli. + */ + 'save_ldap_user_in_database' => false, + /** + * Enable registration + * Allows users to register through the website. + * Accepted values: boolean true or false + */ + 'enable_registration' => false, +); + +/** + * You do not need to edit below this line + */ +return array( + 'unicaen-auth' => $settings, + 'zfcuser' => array( + $k='enable_registration' => isset($settings[$k]) ? $settings[$k] : false, + ), +); \ No newline at end of file diff --git a/config/module.unicaen-auth.local.php.dist b/config/unicaen-auth.local.php.dist similarity index 60% rename from config/module.unicaen-auth.local.php.dist rename to config/unicaen-auth.local.php.dist index 5b051a3b6a806be06c48b8ee3c75097fe251a962..dc5c1f35d6610208b57e6373851443e74e6c7588 100644 --- a/config/module.unicaen-auth.local.php.dist +++ b/config/unicaen-auth.local.php.dist @@ -15,7 +15,7 @@ $settings = array( // 'connection' => array( // 'default' => array( // 'params' => array( -// 'hostname' => 'host.domain.fr', +// 'hostname' => 'cas.unicaen.fr', // 'port' => 443, // 'version' => "2.0", // 'uri' => "", @@ -29,18 +29,7 @@ $settings = array( * $bcrypt = new \Zend\Crypt\Password\Bcrypt(); * echo $bcrypt->create('votreMotDePasseSesame'); */ - 'sesame_password' => '$2y$14$Kvq9KHfDRMFayA6SJZL8tO4rjNjOtOeYwI/.GoaYgY2IxUP0rkdIS', - /** - * Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit - * être enregistré/mis à jour dans la table des utilisateurs de l'appli. - */ - 'save_ldap_user_in_database' => false, - /** - * Enable registration - * Allows users to register through the website. - * Accepted values: boolean true or false - */ - 'enable_registration' => false, + 'sesame_password' => '$2y$14$jbCVltklcys8TQj3hu30.OcKMi7rtUgmu3eo/nxMXynYvcZ5iHF8q', ); /** @@ -48,7 +37,4 @@ $settings = array( */ return array( 'unicaen-auth' => $settings, - 'zfcuser' => array( - $k='enable_registration' => isset($settings[$k]) ? $settings[$k] : false, - ), -); +); \ No newline at end of file