1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2024-12-12 21:08:55 +01:00
yubikey-ksm/ykksm-config.php
Miguel Jacq 8e36c1b482 Standardise logging in YK-KSM to be like YK-VAL (use logdie() and a
logger function).

Remove unused $logfacility variable in config.

Enable $logging switch to enable or disable any logging. Default to
not logging anything out-of-the-box.
2014-07-07 11:43:46 +10:00

21 lines
520 B
PHP

<?php
//ykksm will use the configuration stored in /etc/yubico/ksm/config-db.php, if that file exists. If it does not exist, the below values will be used.
if(!include '/etc/yubico/ksm/config-db.php') {
$dbuser='ykksmreader';
$dbpass='yourpassword';
$basepath='';
$dbname='ykksm';
$dbserver='';
$dbport='';
$dbtype='mysql';
}
$db_dsn = "$dbtype:dbname=$dbname;host=127.0.0.1";
$db_username = $dbuser;
$db_password = $dbpass;
$db_options = array();
$logging = FALSE; // set to TRUE to log anything
?>