[pkg-kolab] r300 - in trunk/kolab-webadmin/debian: . patches
Steffen Joeris
white-guest at costa.debian.org
Wed Feb 8 16:10:23 UTC 2006
Author: white-guest
Date: 2006-02-08 16:10:22 +0000 (Wed, 08 Feb 2006)
New Revision: 300
Added:
trunk/kolab-webadmin/debian/session_vars.php
Modified:
trunk/kolab-webadmin/debian/patches/10-fix-require.dpatch
trunk/kolab-webadmin/debian/rules
Log:
* package session_vars (it is a conffile so use it
under /etc/kolab-webadmin)
* correct require in ldap class for the conffile
Modified: trunk/kolab-webadmin/debian/patches/10-fix-require.dpatch
===================================================================
--- trunk/kolab-webadmin/debian/patches/10-fix-require.dpatch 2006-02-08 15:46:49 UTC (rev 299)
+++ trunk/kolab-webadmin/debian/patches/10-fix-require.dpatch 2006-02-08 16:10:22 UTC (rev 300)
@@ -667,3 +667,14 @@
$this->config_dir = $basedir.'configs/';
//$this->cache_dir = $basedir.'cache/';
// Added for i18n management (Romain 05-03-03)
+--- ldap.class.php.orig 2006-02-08 17:07:04.000000000 +0100
++++ kolab-webadmin-0.4.0/php/admin/include/ldap.class.php 2006-02-08 17:07:15.000000000 +0100
+@@ -19,7 +19,7 @@
+ */
+
+ require_once('mysmarty.php');
+-require_once('session_vars.php');
++require_once('/etc/kolab-webadmin/session_vars.php');
+ require_once('debug.php');
+
+ /* We dont have any better place to put this right now... */
Modified: trunk/kolab-webadmin/debian/rules
===================================================================
--- trunk/kolab-webadmin/debian/rules 2006-02-08 15:46:49 UTC (rev 299)
+++ trunk/kolab-webadmin/debian/rules 2006-02-08 16:10:22 UTC (rev 300)
@@ -50,6 +50,7 @@
dh_installdirs
$(MAKE) install DESTDIR=$(CURDIR)/debian/kolab-webadmin
install -D -m 644 debian/apache.conf $(CURDIR)/debian/kolab-webadmin/etc/kolab-webadmin/apache.conf
+ install -D -m 644 debian/session_vars.php $(CURDIR)/debian/kolab-webadmin/etc/kolab-webadmin/session_vars.php
# Build architecture-independent files here.
Added: trunk/kolab-webadmin/debian/session_vars.php
===================================================================
--- trunk/kolab-webadmin/debian/session_vars.php 2006-02-08 15:46:49 UTC (rev 299)
+++ trunk/kolab-webadmin/debian/session_vars.php 2006-02-08 16:10:22 UTC (rev 300)
@@ -0,0 +1,71 @@
+<?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'] = "Debian";
+$_SESSION['ldap_master_uri'] = "ldap://127.0.0.1:389";
+$_SESSION['base_dn'] = "dc=example,dc=com";
+$_SESSION['php_dn'] = "cn=nobody,cn=internal,dc=example,dc=com";
+$_SESSION['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
+ *
+ * Possible values for attribute is
+ *
+ * 'ro' (readonly)
+ * 'rw' (read/write)
+ * 'hidden' (atribute removed from display)
+ * 'mandatory' (read/write and must not be empty)
+ *
+ * If an attribute is not in this array, it defaults to 'rw'
+ *
+ * Note, attributes correspond to form attribute names and not LDAP attribute names.
+ *
+ * TODO(steffen): Make form and LDAP attributes the same.
+ */
+
+$params['attribute_access'] = array(
+ /*
+ // Examples
+ 'firstname' => 'ro',
+ 'lastname' => 'ro',
+ 'password' => 'rw',
+ 'mail' => 'ro',
+ 'uid' => 'ro',
+ 'title' => 'ro',
+ 'roomNumber' => 'mandatory',
+ 'kolabdelegate' => 'ro',
+ 'telephoneNumber' => 'hidden'
+ */
+);
+?>
More information about the pkg-kolab-devel
mailing list