[ Index ] |
|
Code source de Horde 3.1.3 |
1 <?php 2 3 require_once 'Horde/Prefs/ldap.php'; 4 5 /** 6 * Kolab implementation of the Horde preference system. Derives from the 7 * Prefs_ldap LDAP authentication object, and simply provides parameters to it 8 * based on the global Kolab configuration. 9 * 10 * $Horde: framework/Prefs/Prefs/kolab.php,v 1.1.10.8 2006/06/21 20:09:07 jan Exp $ 11 * 12 * Copyright 2004-2006 Stuart Binge <s.binge@codefusion.co.za> 13 * 14 * See the enclosed file COPYING for license information (LGPL). If you 15 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. 16 * 17 * @author Stuart Binge <s.binge@codefusion.co.za> 18 * @since Horde 1.3 19 * @package Horde_Prefs 20 */ 21 class Prefs_kolab extends Prefs_ldap { 22 23 /** 24 * Constructs a new Kolab preferences object. 25 * 26 * @param string $user The user who owns these preferences. 27 * @param string $password The password associated with $user. 28 * @param string $scope The current application scope. 29 * @param array $params A hash containing connection parameters. 30 * @param boolean $caching Should caching be used? 31 */ 32 function Prefs_kolab($user, $password, $scope = '', 33 $params = array(), $caching = false) 34 { 35 $params['hostspec'] = $GLOBALS['conf']['kolab']['ldap']['server']; 36 $params['port'] = $GLOBALS['conf']['kolab']['ldap']['port']; 37 $params['version'] = '3'; 38 $params['basedn'] = $GLOBALS['conf']['kolab']['ldap']['basedn']; 39 $params['fetchdn'] = true; 40 $params['searchdn'] = $GLOBALS['conf']['kolab']['ldap']['phpdn']; 41 $params['searchpass'] = $GLOBALS['conf']['kolab']['ldap']['phppw']; 42 $params['uid'] = array('mail', 'uid'); 43 44 parent::Prefs_ldap($user, $password, $scope, $params, $caching); 45 } 46 47 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |