This file is indexed.

/usr/lib/python3/dist-packages/lib389/referral.py is in python3-lib389 1.3.7.10-1ubuntu1.

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
# --- BEGIN COPYRIGHT BLOCK ---
# Copyright (C) 2017 Red Hat, Inc.
# All rights reserved.
#
# License: GPL (version 3 or any later version).
# See LICENSE for details.
# --- END COPYRIGHT BLOCK ---

import ldap

from lib389._mapped_object import DSLdapObjects, DSLdapObject


class Referral(DSLdapObject):
    def __init__(self, instance, dn=None, batch=False):
        super(Referral, self).__init__(instance, dn, batch)
        self._rdn_attribute = "cn"
        self._must_attributes = ["ref"]
        self._create_objectclasses = ['referral', 'nsContainer']
        self._protected = False
        managedsait_ctrl = ldap.controls.simple.ManageDSAITControl()
        self._server_controls = [managedsait_ctrl]
        self._client_controls = None

class Referrals(DSLdapObjects):
    def __init__(self, instance, basedn, batch=False):
        super(Referrals, self).__init__(instance, batch)
        self._objectclasses = ['referral']
        self._filterattrs = 'cn'
        self._childobject = Referral
        self._basedn = basedn
        managedsait_ctrl = ldap.controls.simple.ManageDSAITControl()
        self._server_controls = [managedsait_ctrl]
        self._client_controls = None