summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorSteffen Hansen <steffen@kdab.com>2005-04-09 08:55:02 (GMT)
committerSteffen Hansen <steffen@kdab.com>2005-04-09 08:55:02 (GMT)
commit45edfc9213ad46b97623312feb4866ded3054c2f (patch)
treed12ffd235fc714159f455c9f73ab205ce3a991d7 /conf
parent550a9365e18f3c647fa2587e429b85e7ba96295b (diff)
downloadkolab-conf-45edfc9213ad46b97623312feb4866ded3054c2f.tar.gz
config for allowing/denying access to the webgui
Diffstat (limited to 'conf')
-rw-r--r--conf/templates/session_vars.php.template25
1 files changed, 24 insertions, 1 deletions
diff --git a/conf/templates/session_vars.php.template b/conf/templates/session_vars.php.template
index b4daaa1..deacc9f 100644
--- a/conf/templates/session_vars.php.template
+++ b/conf/templates/session_vars.php.template
@@ -1,11 +1,21 @@
<?php
/*
+# (c) 2005 Steffen Hansen <steffen@klaralvdalens-datakonsult.se>
# (c) 2003 Tassilo Erlewein <tassilo.erlewein@erfrakon.de>
# (c) 2003 Martin Konold <martin.konold@erfrakon.de>
# This program is Free Software under the GNU General Public License (>=v2).
# Read the file COPYING that comes with this packages for details.
*/
+
+/*
+ * Session variables fetched from LDAP
+ *
+ * TODO(steffen): Make those variables non-session variables.
+ * We dont really need to store those in the session,
+ * since we source this file on every invokation anyway.
+ */
+
session_start();
$_SESSION['fqdnhostname'] = "@@@fqdnhostname@@@";
@@ -14,6 +24,19 @@ $_SESSION['base_dn'] = "@@@base_dn@@@";
$_SESSION['php_dn'] = "@@@php_dn@@@";
$_SESSION['php_pw'] = "@@@php_pw@@@";
+
+/***********************************************************************
+ * Global config
+ */
+
+$params = array();
+
+/*
+ * Which user classes can log in to the webgui?
+ * Currently 4 user classes exist: user, admin, maintainer and manager
+ */
+$params['allow_user_classes'] = array( 'user', 'admin', 'maintainer', 'manager' );
+
/*
* Array to configure visibility/access of LDAP attributes to user's account object
*
@@ -31,7 +54,7 @@ $_SESSION['php_pw'] = "@@@php_pw@@@";
* TODO(steffen): Make form and LDAP attributes the same.
*/
-$attributeaccess = array(
+$params['attribute_access'] = array(
/*
// Examples
'firstname' => 'ro',