From 9ee05fc0f57634042d668194a0bffb48314a8a43 Mon Sep 17 00:00:00 2001 From: "renater.salaun" <renater.salaun@047e039d-479c-447e-8a29-aa6bf4a09bab> Date: Wed, 29 Oct 2014 16:00:24 +0000 Subject: [PATCH] Add a default Conf.pm file to be customized git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@50 047e039d-479c-447e-8a29-aa6bf4a09bab --- conf/default-Conf.pm | 108 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 conf/default-Conf.pm diff --git a/conf/default-Conf.pm b/conf/default-Conf.pm new file mode 100644 index 0000000..31455ee --- /dev/null +++ b/conf/default-Conf.pm @@ -0,0 +1,108 @@ +## default Conf.pm file +## you should customize it and rename it Conf.pm + +package Conf; + +our %global = ( + + ## Code version + 'version' => 'closed Beta 1', + + ## Name of the application used in web pages, mail notices + 'app_name' => 'eduGAIN Test Account Manager', + + ## URL of the application + 'app_url' => 'https://my.fqdn/accountmanager', + + ## Validity period of test accounts, in days + 'accounts_validity_period' => 7, + + ## Scope used by the Test IdP + 'idp_scope' => 'my.fqdn', + + ## EntityID of the IdP + 'idp_entityid' => 'https://my.fqdn/simplesaml/saml2/idp/metadata.php', + + ## Name of the IdP + 'idp_displayname' => 'eduGAIN Test Identity Provider', + + ## Root simpleSamlPhp directory + 'root_ssp_dir' => '/opt/testidp/simplesamlphp', + + ## Root test account manager directory + 'root_manager_dir' => '/opt/testidp/IdPAccountManager', + + ## Database type refers to a Perl Database Driver name + ## However only a subset of existing DBDs are supported by Rose::DB::Object: + ## Pg, mysql, SQLite, Informix, Oracle (DBD names are case sensitives) + 'database_type' => 'mysql', + + ## Database hostname + 'database_host' => 'localhost', + + ## Database_name + 'database_name' => 'idp_account_manager', + + ## Database username + 'database_user' => 'idpadmin', + + ## Database user password + 'database_password' => 'secret', + + ## Log file for the manager + 'log_file' => '/opt/testidp/IdPAccountManager/log/manager.log', + + ## Log level : debug, info, trace, notice, error + 'log-level' => 'info', + + ## email address to contact admins + 'admin_email' => 'john@my.fqdn', + + ## email address to ask for support + 'support_email' => 'support@my.fqdn', + + ## Development feature + ## Protection to prevent notifications during test dev phases + ## Notify only admin_email above + 'dev_no_mail_outside' => 1, + + ## Development feature + ## hard-coded list of contactPersons + ## these email addresses will be added to the list of contacts for any SP + 'dev_sp_contact' => 'john@my.fqdn,sarah@my.fqdn', + + ## From field use by the account manager + 'notice_from' => 'testidpaccountmanager@my.fqdn', + + ## federation metadata local copy path + 'federation_metadata_file_path' => '/opt/testidp/IdPAccountManager/conf/edugain-md.xml', + + ## valid account profiles + 'account_profiles' => ['student1','teacher1'], +); + +1; # Magic true value required at end of module +__END__ + +=head1 NAME + +Conf - Configuration of the Test Account manager + +=head1 SYNOPSIS + +use Conf; + +printf "Version: %s\n", $Conf::global{'version'}; + +=head1 DESCRIPTION + +The Test Account manager instanciates test accounts associated to a SAML Identity Provider. This module is the main configuration file for the +software. + +=head1 CONFIGURATION OPTIONS + +See the code for the list of supported configuration options + +=head1 AUTHOR + +Olivier Salaün (olivier.salaun@renater.fr) -- GitLab