Branch 'roundcubemail-plugins-kolab-3.1' - plugins/kolab_auth
Aleksander Machniak
machniak at kolabsys.com
Mon Jun 2 14:04:52 CEST 2014
plugins/kolab_auth/config.inc.php.dist | 2 +-
plugins/kolab_auth/kolab_auth.php | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
New commits:
commit cf887bd2f1ef4d92b015ddffa3816dc54cee062e
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Mon Jun 2 14:02:31 2014 +0200
Enable audit debugging only when logged as another user (Bug #3109),
fix default of kolab_auth_auditlog in sample config file
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 ee7c063..ee4e934 100644
--- a/plugins/kolab_auth/kolab_auth.php
+++ b/plugins/kolab_auth/kolab_auth.php
@@ -59,9 +59,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);
More information about the commits
mailing list