2 /*******************************************************************************
3 * Copyright (C) 2007 Easter-eggs
4 * http://ldapsaisie.labs.libre-entreprise.org
6 * Author: See AUTHORS file in top-level directory.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License version 2
10 * as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 ******************************************************************************/
23 // Configuration LDAP Saisie :
24 $GLOBALS['LSconfig'] = array(
25 'NetLDAP2' => '/usr/share/php/Net/LDAP2.php',
26 'Smarty' => '/usr/share/php/smarty/libs/Smarty.class.php',
29 'cacheLSprofiles' => true,
31 'cacheSearch' => true,
32 'keepLSsessionActive' => true,
33 'ldap_servers' => array (
35 'name' => 'LSexample',
36 'ldap_config'=> array(
37 'host' => '127.0.0.1',
41 'binddn' => 'uid=ldapsaisie,ou=sysaccounts,o=ls',
45 'filter' => '(objectClass=*)',
48 'LSprofiles' => array (
51 'uid=eeggs,ou=people,o=ls' => NULL
53 'ou=people,o=ls' => array (
54 'cn=adminldap,ou=groups,o=ls' => array (
55 'attr' => 'uniqueMember',
56 'LSobject' => 'LSgroup'
60 'godfather' => array (
61 'LSobjects' => array (
63 'attr' => 'lsGodfatherDn',
64 'attr_value' => '%{dn}',
65 'basedn' => 'ou=people,o=ls'
68 'filter' => 'lsGodfatherDn=%{dn}'
73 'cacheLSprofiles' => true,
74 'cacheSearch' => true,
75 'authObjectType' => 'LSpeople',
76 'authObjectFilter' => '(|(uid=%{user})(mail=%{user}))',
77 'authObjectTypeAttrPwd' => 'userPassword',
82 'recoverPassword' => array(
84 'recoveryHashAttr' => 'lsRecoveryHash',
85 'recoveryEmailSender' => 'noreply-recover@ls.com',
86 'recoveryHashMail' => array(
87 'subject' => 'LSexample : Recovering your password.',
88 'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}"
90 'newPasswordMail' => array(
91 'subject' => 'LSexample : Your new credentials.',
92 'msg' => "Your new password : %{mdp}"
95 'emailSender' => 'noreply@ls.com'
98 'name' => 'LSexample - multi-company',
99 'ldap_config'=> array(
100 'host' => '127.0.0.1',
104 'binddn' => 'uid=ldapsaisie,ou=sysaccounts,o=ls',
107 'options' => array(),
108 'filter' => '(objectClass=*)',
111 'LSprofiles' => array(
114 'uid=eeggs,ou=people,o=ls' => NULL,
115 'cn=adminldap,ou=groups,o=ls' => array (
116 'attr' => 'uniqueMember',
117 'LSobject' => 'LSgroup'
122 'authObjectType' => 'LSpeople',
123 'subDnLabel' => 'Company',
125 '== All ==' => array(
127 'LSobjects' => array(
134 'LScompany' => array(
135 'LSobjects' => array(
142 'cacheLSprofiles' => true,
143 'cacheSearch' => true,
144 'authObjectTypeAttrPwd' => 'userPassword',
145 'recoverPassword' => array(
146 'mailAttr' => 'mail',
147 'recoveryHashAttr' => 'lsRecoveryHash',
148 'recoveryEmailSender' => 'noreply-recover@lsexample.net',
149 'recoveryHashMail' => array(
150 'subject' => 'LSexample : Recovering your password.',
151 'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}"
153 'newPasswordMail' => array(
154 'subject' => 'LSexample : Your new credentials.',
155 'msg' => "Your new password : %{mdp}"
158 'emailSender' => 'noreply@lsexample.net'
165 //define('LS_THEME','black');
166 //define('LS_TEMPLATES_DIR', 'templates/default');
169 define('LS_THEME','default');
170 define('LS_TEMPLATES_DIR', 'templates/'.LS_THEME);
171 define('LS_IMAGES_DIR', 'images/'.LS_THEME);
172 define('LS_CSS_DIR', 'css/'.LS_THEME);
175 define('LSdebug',true);
178 $GLOBALS['LSlog']['filename'] = 'tmp/LS.log';
179 $GLOBALS['LSlog']['enable'] = true;
181 define('NB_LSOBJECT_LIST',20);
182 define('NB_LSOBJECT_LIST_SELECT',11);
184 define('MAX_SEND_FILE_SIZE',2000000);
188 $GLOBALS['defaultJSscipts']=array(