This file is indexed.

/usr/share/php/Horde/Group/Kolab.php is in php-horde-group 2.0.4-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
 * This class provides a Kolab driver for the Horde group system.
 *
 * Copyright 2005-2014 Horde LLC (http://www.horde.org/)
 *
 * See the enclosed file COPYING for license information (LGPL). If you
 * did not receive this file, see http://www.horde.org/licenses/lgpl21.
 *
 * @author   Gunnar Wrobel <wrobel@pardus.de>
 * @author   Jan Schneider <jan@horde.org>
 * @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));
    }
}