Debian Codegraph @

ansible_collections/community/general/plugins/doc_fragments/_ldap.py

raw
1 # Copyright (c) 2016, Peter Sagerson <[email protected]>
2 # Copyright (c) 2016, Jiri Tyr <[email protected]>
3 # Copyright (c) 2017-2018 Keller Fuchs (@KellerFuchs) <[email protected]>
4 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
5 # SPDX-License-Identifier: GPL-3.0-or-later
6
7 # Note that this doc fragment is **PRIVATE** to the collection. It can have breaking changes at any time.
8 # Do not use this from other collections or standalone plugins/modules!
9
10 from __future__ import annotations
11
12
13 class ModuleDocFragment:
14 # Standard LDAP documentation fragment
15 DOCUMENTATION = r"""
16 notes:
17 - The default authentication settings attempts to use a SASL EXTERNAL bind over a UNIX domain socket. This works well with
18 the default Ubuntu install for example, which includes a C(cn=peercred,cn=external,cn=auth) ACL rule allowing root to
19 modify the server configuration. If you need to use a simple bind to access your server, pass the credentials in O(bind_dn)
20 and O(bind_pw).
21 options:
22 bind_dn:
23 description:
24 - A DN to bind with. Try to use a SASL bind with the EXTERNAL mechanism as default when this parameter is omitted.
25 - Use an anonymous bind if the parameter is blank.
26 type: str
27 bind_pw:
28 description:
29 - The password to use with O(bind_dn).
30 type: str
31 default: ''
32 ca_path:
33 description:
34 - Set the path to PEM file with CA certs.
35 type: path
36 version_added: "6.5.0"
37 client_cert:
38 type: path
39 description:
40 - PEM formatted certificate chain file to be used for SSL client authentication.
41 - Required if O(client_key) is defined.
42 version_added: "7.1.0"
43 client_key:
44 type: path
45 description:
46 - PEM formatted file that contains your private key to be used for SSL client authentication.
47 - Required if O(client_cert) is defined.
48 version_added: "7.1.0"
49 dn:
50 required: true
51 description:
52 - The DN of the entry to add or remove.
53 type: str
54 referrals_chasing:
55 choices: [disabled, anonymous]
56 default: anonymous
57 type: str
58 description:
59 - Set the referrals chasing behavior.
60 - V(anonymous) follow referrals anonymously. This is the default behavior.
61 - V(disabled) disable referrals chasing. This sets C(OPT_REFERRALS) to off.
62 version_added: 2.0.0
63 server_uri:
64 description:
65 - The O(server_uri) parameter may be a comma- or whitespace-separated list of URIs containing only the schema, the host,
66 and the port fields.
67 - The default value lets the underlying LDAP client library look for a UNIX domain socket in its default location.
68 - Note that when using multiple URIs you cannot determine to which URI your client gets connected.
69 - For URIs containing additional fields, particularly when using commas, behavior is undefined.
70 type: str
71 default: ldapi:///
72 start_tls:
73 description:
74 - Use the START_TLS LDAP extension if set to V(true).
75 type: bool
76 default: false
77 validate_certs:
78 description:
79 - If set to V(false), SSL certificates are not validated.
80 - This should only be used on sites using self-signed certificates.
81 type: bool
82 default: true
83 sasl_class:
84 description:
85 - The class to use for SASL authentication.
86 type: str
87 choices: ['external', 'gssapi']
88 default: external
89 version_added: "2.0.0"
90 xorder_discovery:
91 description:
92 - Set the behavior on how to process Xordered DNs.
93 - V(enable) performs a C(ONELEVEL) search below the superior RDN to find the matching DN.
94 - V(disable) always uses the DN unmodified (as passed by the O(dn) parameter).
95 - V(auto) only performs a search if the first RDN does not contain an index number (C({x})).
96 type: str
97 choices: ['enable', 'auto', 'disable']
98 default: auto
99 version_added: "6.4.0"
100 """