Back to index

d-push  2.0
config.php
Go to the documentation of this file.
00001 <?php
00002 /***********************************************
00003 * File      :   searchldap/config.php
00004 * Project   :   Z-Push
00005 * Descr     :   configuration file for the
00006 *               BackendSearchLDAP backend.
00007 *
00008 * Created   :   03.08.2010
00009 *
00010 * Copyright 2007 - 2011 Zarafa Deutschland GmbH
00011 *
00012 * This program is free software: you can redistribute it and/or modify
00013 * it under the terms of the GNU Affero General Public License, version 3,
00014 * as published by the Free Software Foundation with the following additional
00015 * term according to sec. 7:
00016 *
00017 * According to sec. 7 of the GNU Affero General Public License, version 3,
00018 * the terms of the AGPL are supplemented with the following terms:
00019 *
00020 * "Zarafa" is a registered trademark of Zarafa B.V.
00021 * "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
00022 * The licensing of the Program under the AGPL does not imply a trademark license.
00023 * Therefore any rights, title and interest in our trademarks remain entirely with us.
00024 *
00025 * However, if you propagate an unmodified version of the Program you are
00026 * allowed to use the term "Z-Push" to indicate that you distribute the Program.
00027 * Furthermore you may use our trademarks where it is necessary to indicate
00028 * the intended purpose of a product or service provided you use it in accordance
00029 * with honest practices in industrial or commercial matters.
00030 * If you want to propagate modified versions of the Program under the name "Z-Push",
00031 * you may only do so if you have a written permission by Zarafa Deutschland GmbH
00032 * (to acquire a permission please contact Zarafa at trademark@zarafa.com).
00033 *
00034 * This program is distributed in the hope that it will be useful,
00035 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00036 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00037 * GNU Affero General Public License for more details.
00038 *
00039 * You should have received a copy of the GNU Affero General Public License
00040 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00041 *
00042 * Consult LICENSE file for details
00043 ************************************************/
00044 
00045 // LDAP host and port
00046 define("LDAP_HOST", "ldap://127.0.0.1/");
00047 define("LDAP_PORT", "389");
00048 
00049 // Set USER and PASSWORD if not using anonymous bind
00050 define("ANONYMOUS_BIND", true);
00051 define("LDAP_BIND_USER", "cn=searchuser,dc=test,dc=net");
00052 define("LDAP_BIND_PASSWORD", "");
00053 
00054 // Search base & filter
00055 // the SEARCHVALUE string is substituded by the value inserted into the search field
00056 define("LDAP_SEARCH_BASE", "ou=global,dc=test,dc=net");
00057 define("LDAP_SEARCH_FILTER", "(|(cn=*SEARCHVALUE*)(mail=*SEARCHVALUE*))");
00058 
00059 // LDAP field mapping.
00060 // values correspond to an inetOrgPerson class
00061 global $ldap_field_map;
00062 $ldap_field_map = array(
00063                     SYNC_GAL_DISPLAYNAME    => 'cn',
00064                     SYNC_GAL_PHONE          => 'telephonenumber',
00065                     SYNC_GAL_OFFICE         => '',
00066                     SYNC_GAL_TITLE          => 'title',
00067                     SYNC_GAL_COMPANY        => 'ou',
00068                     SYNC_GAL_ALIAS          => 'uid',
00069                     SYNC_GAL_FIRSTNAME      => 'givenname',
00070                     SYNC_GAL_LASTNAME       => 'sn',
00071                     SYNC_GAL_HOMEPHONE      => 'homephone',
00072                     SYNC_GAL_MOBILEPHONE    => 'mobile',
00073                     SYNC_GAL_EMAILADDRESS   => 'mail',
00074                 );
00075 ?>