This file is indexed.

/usr/lib/python3/dist-packages/lib389/rootdse.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
35
36
37
38
39
40
41
42
43
44
45
46
# --- BEGIN COPYRIGHT BLOCK ---
# Copyright (C) 2016 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._constants import *
from lib389 import Entry
from lib389._mapped_object import DSLdapObject


class RootDSE(DSLdapObject):
    """
    Check if the directory supports features or not.
    """
    def __init__(self, conn, batch=False):
        """@param conn - a DirSrv instance """
        super(RootDSE, self).__init__(instance=conn, batch=batch)
        self._dn = ""

    def supported_sasl(self):
        return self.get_attr_vals('supportedSASLMechanisms')

    def supports_sasl_gssapi(self):
        return self.present("supportedSASLMechanisms", 'GSSAPI')

    def supports_sasl_ldapssotoken(self):
        return self.present("supportedSASLMechanisms", "LDAPSSOTOKEN")

    def supports_sasl_plain(self):
        return self.present("supportedSASLMechanisms", "PLAIN")

    def supports_sasl_external(self):
        return self.present("supportedSASLMechanisms", "EXTERNAL")

    def supports_exop_whoami(self):
        return self.present("supportedExtension", "1.3.6.1.4.1.4203.1.11.3")

    def supports_exop_ldapssotoken_request(self):
        return self.present("supportedExtension", "2.16.840.1.113730.3.5.14")

    def supports_exop_ldapssotoken_revoke(self):
        return self.present("supportedExtension", "2.16.840.1.113730.3.5.16")