This file is indexed.

/usr/share/php/tests/turba/Turba/ToDo/ldif_exportFile.phpt is in php-horde-turba 4.1.3-1.

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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
--TEST--
Export Simple LDIF file
--SKIPIF--
<?php die('Skip Convert to PHPUnit/Horde_Test.'); ?>
--FILE--
<?php

if (defined('E_DEPRECATED')) {
    error_reporting(E_ALL & ~constant('E_DEPRECATED'));
} else {
    error_reporting(E_ALL);
}

require 'Horde.php';
require 'Horde/Data.php';
require __DIR__ . '/../Data/ldif.php';

$ldif = new Horde_Data_ldif();

$data = array(array('firstname' => 'John',
                    'lastname' => 'Smith',
                    'name' => 'John Smith',
                    'email' => 'js23@school.edu'),
              array('firstname' => 'Charles',
                    'lastname' => 'Brown',
                    'name' => 'Charlie Brown',
                    'alias' => 'Chuck',
                    'birthday' => 'May 1',
                    'workPhone' => '+1 212 876 5432',
                    'homePhone' => '+1 203 234 5678',
                    'fax' => '+1 203 999 9999',
                    'cellPhone' => '+1 917 321 0987',
                    'homeStreet' => '12 west 57 street',
                    'homeCity' => 'New York',
                    'homeProvince' => 'New York',
                    'homePostalCode' => '10001',
                    'homeCountry' => 'USA',
                    'workStreet' => '12 west 55 street',
                    'workCity' => 'New York',
                    'workProvince' => 'New York',
                    'workPostalCode' => '10001',
                    'workCountry' => 'USA',
                    'title' => 'Senior Systems Programmer',
                    'department' => 'SUIT',
                    'company' => 'School University',
                    'website' => 'http://www.school.edu/',
                    'freebusyUrl' => 'http://www.school.edu/~chuck/fb.ics',
                    'notes' => 'hi mom
',
                    'email' => 'brown@school.edu'),
              );

echo $ldif->exportData($data, false) . "\n";
?>
--EXPECT--
dn: cn=John Smith,mail=js23@school.edu
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
cn: John Smith
givenName: John
sn: Smith
mail: js23@school.edu
modifytimestamp: 0Z

dn: cn=Charlie Brown,mail=brown@school.edu
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
cn: Charlie Brown
givenName: Charles
sn: Brown
mail: brown@school.edu
mozillaHomeStreet2: 12 west 57 street
mozillaHomeLocalityName: New York
mozillaHomeState: New York
mozillaHomePostalCode: 10001
mozillaHomeCountryName: USA
mozillaWorkStreet2: 12 west 55 street
l: New York
st: New York
postalCode: 10001
c: USA
homePhone: +1 203 234 5678
telephoneNumber: +1 212 876 5432
mobile: +1 917 321 0987
fax: +1 203 999 9999
title: Senior Systems Programmer
company: School University
description:: aGkgbW9tCg==
mozillaWorkUrl: http://www.school.edu/
department: SUIT
modifytimestamp: 0Z