This file is indexed.

/usr/share/doc/php-horde-kolab-server/examples/server.php is in php-horde-kolab-server 2.0.2-2.

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
<?php
/**
 * Demonstrates the use of Horde_Kolab_Server::
 *
 *
 * @package Kolab_Server
 */

/** Configure the system for LDAP access */
global $conf;

/** Adapt these settings to match your Kolab LDAP server */
$conf['kolab']['server']['driver'] = 'ldap';
$conf['kolab']['server']['params']['server'] = 'example.com';
$conf['kolab']['server']['params']['base_dn'] = 'dc=example,dc=com';
$conf['kolab']['server']['params']['bind_dn'] = 'cn=nobody,cn=internal,dc=example,dc=com';
$conf['kolab']['server']['params']['bind_pw'] = 'MY_VERY_SECRET_PASSWORD';

/** Require the main package class */
require_once 'Horde/Kolab/Server.php';

/** Initialize the server object */
$server = Horde_Kolab_Server::singleton();

/** Fetch a dn for a mail address */
$dn = $server->dnForMailAddress('wrobel@example.com');
var_dump($dn);

/** Fetch the corresponding object */
$object = $server->fetch($dn);
var_dump(get_class($object));

/** Display object attributes */
var_dump($object->get(Horde_Kolab_Server_Object::ATTRIBUTE_CN));