This file is indexed.

/usr/share/augeas/lenses/dist/tests/test_slapd.aug is in augeas-lenses 1.2.0-0ubuntu1.3.

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
module Test_slapd =

let conf = "# This is the main slapd configuration file. See slapd.conf(5) for more
# info on the configuration options.

#######################################################################
# Global Directives:

# Features to permit
#allow bind_v2

# Schema and objectClass definitions
include         /etc/ldap/schema/core.schema

#######################################################################
# Specific Directives for database #1, of type hdb:
# Database specific directives apply to this databasse until another
# 'database' directive occurs
database        hdb

# The base of your directory in database #1
suffix          \"dc=nodomain\"

access to attrs=userPassword,shadowLastChange
        by dn=\"cn=admin,dc=nodomain\" write
        by anonymous auth
        by self write
        by * none
"

test Slapd.lns get conf =
  { "#comment" = "This is the main slapd configuration file. See slapd.conf(5) for more" }
  { "#comment" = "info on the configuration options." }
  {}
  { "#comment" = "######################################################################" }
  { "#comment" = "Global Directives:"}
  {}
  { "#comment" = "Features to permit" }
  { "#comment" = "allow bind_v2" }
  {}
  { "#comment" = "Schema and objectClass definitions" }
  { "include"  = "/etc/ldap/schema/core.schema" }
  {}
  { "#comment" = "######################################################################" }
  { "#comment" = "Specific Directives for database #1, of type hdb:" }
  { "#comment" = "Database specific directives apply to this databasse until another" }
  { "#comment" = "'database' directive occurs" }
  { "database" = "hdb"
     {}
     { "#comment" = "The base of your directory in database #1" }
     { "suffix"   = "dc=nodomain" }
     {}
     { "access to" = "attrs=userPassword,shadowLastChange"
        { "by" = "dn=\"cn=admin,dc=nodomain\""
           { "access" = "write" } }
        { "by" = "anonymous"
           { "access" = "auth" } }
        { "by" = "self"
           { "access" = "write" } }
        { "by" = "*"
           { "access" = "none" } } } }

(* Test: Slapd.lns
     Full access test with who/access/control *)
test Slapd.lns get "access to dn.subtree=\"dc=example,dc=com\"
  by self write stop\n" =
  { "access to" = "dn.subtree=\"dc=example,dc=com\""
    { "by" = "self"
      { "access" = "write" }
      { "control" = "stop" } } }

(* Test: Slapd.lns
     access test with who *)
test Slapd.lns get "access to dn.subtree=\"dc=example,dc=com\"
  by self\n" =
  { "access to" = "dn.subtree=\"dc=example,dc=com\""
    { "by" = "self" } }

(* Test: Slapd.lns
     access test with who/access *)
test Slapd.lns get "access to dn.subtree=\"dc=example,dc=com\"
  by self write\n" =
  { "access to" = "dn.subtree=\"dc=example,dc=com\""
    { "by" = "self"
      { "access" = "write" } } }

(* Test: Slapd.lns
     access test with who/control *)
test Slapd.lns get "access to dn.subtree=\"dc=example,dc=com\"
  by self stop\n" =
  { "access to" = "dn.subtree=\"dc=example,dc=com\""
    { "by" = "self"
      { "control" = "stop" } } }