Remove ldap_entry's params option completely (#2257)

* Remove ldap_entry's params option completely.

* Regular sanity error fixing.
This commit is contained in:
Felix Fontein 2021-04-18 10:09:46 +02:00 committed by GitHub
parent f9e3e229dd
commit 721589827e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 19 deletions

View file

@ -25,9 +25,6 @@ notes:
rule allowing root to modify the server configuration. If you need to use
a simple bind to access your server, pass the credentials in I(bind_dn)
and I(bind_pw).
- "The I(params) parameter was removed due to circumventing Ansible's parameter
handling. The I(params) parameter started disallowing setting the I(bind_pw) parameter in
Ansible-2.7 as it was insecure to set the parameter that way."
author:
- Jiri Tyr (@jtyr)
requirements:
@ -51,6 +48,7 @@ options:
- The target state of the entry.
choices: [present, absent]
default: present
type: str
extends_documentation_fragment:
- community.general.ldap.documentation
@ -187,7 +185,6 @@ def main():
argument_spec=gen_specs(
attributes=dict(default={}, type='dict'),
objectClass=dict(type='list', elements='str'),
params=dict(type='dict'),
state=dict(default='present', choices=['present', 'absent']),
),
required_if=[('state', 'present', ['objectClass'])],
@ -198,9 +195,6 @@ def main():
module.fail_json(msg=missing_required_lib('python-ldap'),
exception=LDAP_IMP_ERR)
if module.params['params']:
module.fail_json(msg="The `params` option to ldap_entry was removed since it circumvents Ansible's option handling")
state = module.params['state']
# Instantiate the LdapEntry object