# (c) 2003 Tassilo Erlewein # (c) 2003 Martin Konold # 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@@@"; $_SESSION['ldap_master_uri'] = "@@@ldap_master_uri@@@"; $_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 * * 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' */ ); ?>