summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-06-02 12:02:31 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-06-02 12:02:31 (GMT)
commit26767a16698b459590283325c38b5feedbe4c9ca (patch)
tree9cfbd576e13c8ce468dc1b6a33ddd54180f43abd /plugins/kolab_auth
parent2ce61e7fc1032e67fedcf814aa6e9b1a592b566a (diff)
downloadroundcubemail-plugins-kolab-26767a16698b459590283325c38b5feedbe4c9ca.tar.gz
Enable audit debugging only when logged as another user (Bug #3109),
fix default of kolab_auth_auditlog in sample config file
Diffstat (limited to 'plugins/kolab_auth')
-rw-r--r--plugins/kolab_auth/config.inc.php.dist2
-rw-r--r--plugins/kolab_auth/kolab_auth.php5
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/kolab_auth/config.inc.php.dist b/plugins/kolab_auth/config.inc.php.dist
index e7b9d15..7a23301 100644
--- a/plugins/kolab_auth/config.inc.php.dist
+++ b/plugins/kolab_auth/config.inc.php.dist
@@ -34,7 +34,7 @@ $rcmail_config['kolab_auth_admin_login'] = '';
$rcmail_config['kolab_auth_admin_password'] = '';
// Enable audit logging for abuse of administrative privileges.
-$rcmail_config['kolab_auth_auditlog'] = true;
+$rcmail_config['kolab_auth_auditlog'] = false;
// Role field (from fieldmap configuration)
$rcmail_config['kolab_auth_role'] = 'role';
diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php
index c325e61..d9222ac 100644
--- a/plugins/kolab_auth/kolab_auth.php
+++ b/plugins/kolab_auth/kolab_auth.php
@@ -61,9 +61,8 @@ class kolab_auth extends rcube_plugin
$this->add_hook('write_log', array($this, 'write_log'));
$this->username = $_SESSION['username'];
- // Enable debug logs per-user, this enables logging only after
- // user has logged in
- if (!empty($_SESSION['username']) && $rcmail->config->get('kolab_auth_auditlog')) {
+ // Enable debug logs (per-user), when logged as another user
+ if (!empty($_SESSION['kolab_auth_admin']) && $rcmail->config->get('kolab_auth_auditlog')) {
$rcmail->config->set('debug_level', 1);
$rcmail->config->set('devel_mode', true);
$rcmail->config->set('smtp_log', true);