Changeset - 81d9f39496d4
[Not reviewed]
0 1 0
Branko Majic (branko) - 2 months ago 2024-09-03 18:08:07
branko@majic.rs
MAR-218: Fix execution of the LDAP database permissions module:

- Python interpreter path must be specified explicitly (without the
env wrapper).
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
roles/ldap_server/library/m_ldap_permissions.py
Show inline comments
 
#!/usr/bin/env python
 
#!/usr/bin/python3
 

	
 
from ansible.module_utils.basic import AnsibleModule
 

	
 
# Try to load the Python LDAP module.
 
try:
 
    import ldap
 
    import ldap.sasl
 
    import ldap.modlist
 
except ImportError:
 
    ldap_found = False
 
else:
 
    ldap_found = True
 

	
 

	
 
DOCUMENTATION = """
 
---
 
module: m_ldap_permissions
 
short_description: Sets permissions/ACL for LDAP database.
 
description:
 
  - Sets permissions (access control list) for LDAP database.
 
version_added: 1.8.2
 
author: Branko Majic
 
notes:
 
  - Requires the python-ldap Python package on remote host. For Debian and
0 comments (0 inline, 0 general)