steffen: server/kolabd/kolabd/templates session_vars.php.template, 1.2, 1.3

cvs at intevation.de cvs at intevation.de
Sat Apr 9 10:54:46 CEST 2005


Author: steffen

Update of /kolabrepository/server/kolabd/kolabd/templates
In directory doto:/tmp/cvs-serv15060/kolabd/templates

Modified Files:
	session_vars.php.template 
Log Message:
config for allowing/denying access to the webgui

Index: session_vars.php.template
===================================================================
RCS file: /kolabrepository/server/kolabd/kolabd/templates/session_vars.php.template,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- session_vars.php.template	18 Mar 2005 08:57:28 -0000	1.2
+++ session_vars.php.template	9 Apr 2005 08:54:44 -0000	1.3
@@ -1,11 +1,21 @@
 <?php
 /*
+# (c) 2005 Steffen Hansen <steffen at klaralvdalens-datakonsult.se>
 # (c) 2003 Tassilo Erlewein <tassilo.erlewein at erfrakon.de>
 # (c) 2003 Martin Konold <martin.konold at 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['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 @@
  * TODO(steffen): Make form and LDAP attributes the same.
  */
 
-$attributeaccess = array(
+$params['attribute_access'] = array(
 			 /*
                          // Examples
 			 'firstname'  => 'ro',





More information about the commits mailing list