summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Hansen <steffen@kdab.com>2005-03-18 08:59:00 (GMT)
committerSteffen Hansen <steffen@kdab.com>2005-03-18 08:59:00 (GMT)
commit35dfce0530c076580a18932fb2c4df3eabb01054 (patch)
tree1e012698b8cf99286d951f09b8d830aa0ddec204
parent4822f3796897b2087da8c257783aaf23f173a443 (diff)
downloadkolab-conf-35dfce0530c076580a18932fb2c4df3eabb01054.tar.gz
Issue685 (webgui config)
-rw-r--r--conf/templates/session_vars.php.template32
1 files changed, 32 insertions, 0 deletions
diff --git a/conf/templates/session_vars.php.template b/conf/templates/session_vars.php.template
index e334124..b4daaa1 100644
--- a/conf/templates/session_vars.php.template
+++ b/conf/templates/session_vars.php.template
@@ -13,4 +13,36 @@ $_SESSION['ldap_master_uri'] = "@@@ldap_master_uri@@@";
$_SESSION['base_dn'] = "@@@base_dn@@@";
$_SESSION['php_dn'] = "@@@php_dn@@@";
$_SESSION['php_pw'] = "@@@php_pw@@@";
+
+/*
+ * 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.
+ */
+
+$attributeaccess = array(
+ /*
+ // Examples
+ 'firstname' => 'ro',
+ 'lastname' => 'ro',
+ 'password' => 'rw',
+ 'mail' => 'ro',
+ 'uid' => 'ro',
+ 'title' => 'ro',
+ 'roomNumber' => 'mandatory',
+ 'kolabdelegate' => 'ro',
+ 'telephoneNumber' => 'hidden'
+ */
+);
?>