2020-03-09 10:11:07 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Copyright: (c) 2016, Peter Sagerson <psagers@ignorare.net>
|
|
|
|
# Copyright: (c) 2016, Jiri Tyr <jiri.tyr@gmail.com>
|
|
|
|
# Copyright: (c) 2017-2018 Keller Fuchs (@KellerFuchs) <kellerfuchs@hashbang.sh>
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
2020-06-24 21:50:36 +02:00
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
|
|
__metaclass__ = type
|
|
|
|
|
2020-03-09 10:11:07 +01:00
|
|
|
|
|
|
|
class ModuleDocFragment(object):
|
|
|
|
# Standard LDAP documentation fragment
|
|
|
|
DOCUMENTATION = r'''
|
|
|
|
options:
|
|
|
|
bind_dn:
|
|
|
|
description:
|
2021-01-27 08:15:38 +01:00
|
|
|
- A DN to bind with. If this is omitted, we'll try a SASL bind with the EXTERNAL mechanism as default.
|
2020-03-09 10:11:07 +01:00
|
|
|
- If this is blank, we'll use an anonymous bind.
|
|
|
|
type: str
|
|
|
|
bind_pw:
|
|
|
|
description:
|
|
|
|
- The password to use with I(bind_dn).
|
|
|
|
type: str
|
|
|
|
dn:
|
|
|
|
required: true
|
|
|
|
description:
|
|
|
|
- The DN of the entry to add or remove.
|
|
|
|
type: str
|
2021-01-27 07:56:07 +01:00
|
|
|
referrals_chasing:
|
|
|
|
choices: [disabled, anonymous]
|
|
|
|
default: anonymous
|
|
|
|
type: str
|
|
|
|
description:
|
|
|
|
- Set the referrals chasing behavior.
|
|
|
|
- C(anonymous) follow referrals anonymously. This is the default behavior.
|
|
|
|
- C(disabled) disable referrals chasing. This sets C(OPT_REFERRALS) to off.
|
|
|
|
version_added: 2.0.0
|
2020-03-09 10:11:07 +01:00
|
|
|
server_uri:
|
|
|
|
description:
|
2022-03-24 07:44:28 +01:00
|
|
|
- The I(server_uri) parameter may be a comma- or whitespace-separated list of URIs containing only the schema, the host, and the port fields.
|
2020-03-09 10:11:07 +01:00
|
|
|
- The default value lets the underlying LDAP client library look for a UNIX domain socket in its default location.
|
2022-03-24 07:44:28 +01:00
|
|
|
- Note that when using multiple URIs you cannot determine to which URI your client gets connected.
|
|
|
|
- For URIs containing additional fields, particularly when using commas, behavior is undefined.
|
2020-03-09 10:11:07 +01:00
|
|
|
type: str
|
|
|
|
default: ldapi:///
|
|
|
|
start_tls:
|
|
|
|
description:
|
|
|
|
- If true, we'll use the START_TLS LDAP extension.
|
|
|
|
type: bool
|
|
|
|
default: no
|
|
|
|
validate_certs:
|
|
|
|
description:
|
|
|
|
- If set to C(no), SSL certificates will not be validated.
|
|
|
|
- This should only be used on sites using self-signed certificates.
|
|
|
|
type: bool
|
|
|
|
default: yes
|
2021-01-27 08:15:38 +01:00
|
|
|
sasl_class:
|
|
|
|
description:
|
|
|
|
- The class to use for SASL authentication.
|
|
|
|
- possible choices are C(external), C(gssapi).
|
|
|
|
type: str
|
|
|
|
choices: ['external', 'gssapi']
|
|
|
|
default: external
|
|
|
|
version_added: "2.0.0"
|
2020-03-09 10:11:07 +01:00
|
|
|
'''
|