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=*)',
53 'LSprofiles' => array (
56 'uid=eeggs,ou=people,o=ls' => NULL
58 'ou=people,o=ls' => array (
59 'cn=adminldap,ou=groups,o=ls' => array (
60 'attr' => 'uniqueMember',
61 'LSobject' => 'LSgroup'
65 'godfather' => array (
66 'LSobjects' => array (
68 'attr' => 'lsGodfatherDn',
69 'attr_value' => '%{dn}',
70 'basedn' => 'ou=people,o=ls'
73 'filter' => '(lsGodfatherDn=%{dn})'
78 'cacheLSprofiles' => true,
79 'cacheSearch' => true,
80 'authObjectType' => 'LSpeople',
81 'authObjectFilter' => '(|(uid=%{user})(mail=%{user}))',
82 'authObjectTypeAttrPwd' => 'userPassword',
87 'recoverPassword' => array(
89 'recoveryHashAttr' => 'lsRecoveryHash',
90 'recoveryEmailSender' => 'noreply-recover@ls.com',
91 'recoveryHashMail' => array(
92 'subject' => 'LSexample : Recovering your password.',
93 'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}"
95 'newPasswordMail' => array(
96 'subject' => 'LSexample : Your new credentials.',
97 'msg' => "Your new password : %{mdp}"
100 'emailSender' => 'noreply@ls.com'
103 'name' => 'LSexample - multi-company',
104 'ldap_config'=> array(
105 'host' => '127.0.0.1',
109 'binddn' => 'uid=ldapsaisie,ou=sysaccounts,o=ls',
112 'options' => array(),
113 'filter' => '(objectClass=*)',
116 'LSprofiles' => array(
119 'uid=eeggs,ou=people,o=ls' => NULL,
120 'cn=adminldap,ou=groups,o=ls' => array (
121 'attr' => 'uniqueMember',
122 'LSobject' => 'LSgroup'
126 'admingroup' => array (
127 'ou=company1,ou=companies,o=ls' => array (
128 'uid=user1,ou=people,ou=company1,ou=companies,o=ls' => NULL
132 'authObjectType' => 'LSpeople',
133 'subDnLabel' => 'Company',
135 '== All ==' => array(
137 'LSobjects' => array(
144 'LScompany' => array(
145 'LSobjects' => array(
152 'cacheLSprofiles' => true,
153 'cacheSearch' => true,
154 'authObjectTypeAttrPwd' => 'userPassword',
155 'recoverPassword' => array(
156 'mailAttr' => 'mail',
157 'recoveryHashAttr' => 'lsRecoveryHash',
158 'recoveryEmailSender' => 'noreply-recover@lsexample.net',
159 'recoveryHashMail' => array(
160 'subject' => 'LSexample : Recovering your password.',
161 'msg' => "To proceed password recovery procedure, please follow that link:\n%{url}"
163 'newPasswordMail' => array(
164 'subject' => 'LSexample : Your new credentials.',
165 'msg' => "Your new password : %{mdp}"
168 'emailSender' => 'noreply@lsexample.net'
175 //define('LS_THEME','black');
176 //define('LS_TEMPLATES_DIR', 'templates/default');
179 define('LS_THEME','default');
180 define('LS_TEMPLATES_DIR', 'templates');
181 define('LS_IMAGES_DIR', 'images');
182 define('LS_CSS_DIR', 'css');
185 define('LSdebug',false);
188 $GLOBALS['LSlog']['filename'] = 'tmp/LS.log';
189 $GLOBALS['LSlog']['enable'] = true;
191 define('NB_LSOBJECT_LIST',20);
192 define('NB_LSOBJECT_LIST_SELECT',11);
194 define('MAX_SEND_FILE_SIZE',2000000);
198 $GLOBALS['defaultJSscipts']=array(
207 $GLOBALS['defaultCSSfiles']=array();