This file is indexed.

/usr/share/augeas/lenses/dist/tests/test_ldif.aug is in augeas-lenses 1.10.1-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
 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
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
(* Test for LDIF lens *)
module Test_ldif =

  (* Test LDIF content only *)
  let content = "version: 1
dn: cn=foo bar,dc=example,dc=com
# test
ou: example value
cn:: Zm9vIGJhcg==
# test
telephoneNumber;foo;bar: +1 123 456 789
binary;foo:< file:///file/something
# test

dn: cn=simple,dc=example,dc=com
cn: simple
test: split line starts with
  :colon

dn:: Y249c2ltcGxlLGRjPWV4YW1wbGUsZGM9Y29t
# test
cn: simple

dn: cn=simple,dc=exam
    ple,dc=com
cn: simple
telephoneNumber:: KzEgMTIzIDQ1
  NiA3ODk=

# test
"

  test Ldif.lns get content =
    { "@content"
        { "version" = "1" }
        { "1" = "cn=foo bar,dc=example,dc=com"
            { "#comment" = "test" }
            { "ou" = "example value" }
            { "cn"
                { "@base64" = "Zm9vIGJhcg==" } }
            { "#comment" = "test" }
            { "telephoneNumber" = "+1 123 456 789"
                { "@option" = "foo" }
                { "@option" = "bar" } }
            { "binary"
                { "@option" = "foo" }
                { "@url" = "file:///file/something" } } }
        { "#comment" = "test" }
        {}
        { "2" = "cn=simple,dc=example,dc=com"
            { "cn" = "simple" }
            { "test" = "split line starts with
  :colon" } }
        {}
        { "3"
            { "@base64" = "Y249c2ltcGxlLGRjPWV4YW1wbGUsZGM9Y29t" }
            { "#comment" = "test" }
            { "cn" = "simple" } }
        {}
        { "4" = "cn=simple,dc=exam
    ple,dc=com"
            { "cn" = "simple" }
            { "telephoneNumber"
                { "@base64" = "KzEgMTIzIDQ1
  NiA3ODk=" } } }
        {}
        { "#comment" = "test" }
    }

  (* Test LDIF changes *)
  let changes = "version: 1
dn: cn=foo,dc=example,dc=com
changetype: delete

dn: cn=simple,dc=example,dc=com
control: 1.2.3.4
control: 1.2.3.4  true
# test
control: 1.2.3.4  true: foo bar
control: 1.2.3.4  true:: Zm9vIGJhcg==
changetype: add
cn: simple

dn: cn=foo bar,dc=example,dc=com
changeType: modify
add: telephoneNumber
telephoneNumber: +1 123 456 789
-
replace: homePostalAddress;lang-fr
homePostalAddress;lang-fr: 34 rue de Seine
# test
-
delete: telephoneNumber
-
replace: telephoneNumber
telephoneNumber:: KzEgMTIzIDQ1NiA3ODk=
-

dn: cn=foo,dc=example,dc=com
changetype: moddn
newrdn: cn=bar
deleteoldrdn: 0
newsuperior: dc=example,dc=net
"

  test Ldif.lns get changes =
    { "@changes"
        { "version" = "1" }
        { "1" = "cn=foo,dc=example,dc=com"
            { "changetype" = "delete" } }
        {}
        { "2" = "cn=simple,dc=example,dc=com"
            { "control" = "1.2.3.4" }
            { "control" = "1.2.3.4"
                { "criticality" = "true" } }
            { "#comment" = "test" }
            { "control" = "1.2.3.4"
                { "criticality" = "true" }
                { "value" = "foo bar" } }
            { "control" = "1.2.3.4"
                { "criticality" = "true" }
                { "value"
                    { "@base64" = "Zm9vIGJhcg==" } } }
            { "changetype" = "add" }
            { "cn" = "simple" } }
        {}
        { "3" = "cn=foo bar,dc=example,dc=com"
            { "changeType" = "modify" }
            { "add" = "telephoneNumber"
                { "telephoneNumber" = "+1 123 456 789" } }
            { "replace" = "homePostalAddress"
                { "@option" = "lang-fr" }
                { "homePostalAddress" = "34 rue de Seine"
                    { "@option" = "lang-fr" } }
                { "#comment" = "test" } }
            { "delete" = "telephoneNumber" }
            { "replace" = "telephoneNumber"
                { "telephoneNumber"
                    { "@base64" = "KzEgMTIzIDQ1NiA3ODk=" } } } }
        {}
        { "4" = "cn=foo,dc=example,dc=com"
            { "changetype" = "moddn" }
            { "newrdn" = "cn=bar" }
            { "deleteoldrdn" = "0" }
            { "newsuperior" = "dc=example,dc=net" } }
    }

(* Local Variables: *)
(* mode: caml       *)
(* End:             *)