�
�Udac @` s� d Z d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d
Z d Z
d d l Z d d l j
j Z d d
l m Z d d l m Z d d l m Z e j � Z d e f d � � YZ d � Z e d k r� e � n d S( sw
(c) 2018-2019, NetApp, Inc
GNU General Public License v3.0+
(see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust certifiedt supported_bys�
module: na_ontap_ldap_client
short_description: NetApp ONTAP LDAP client
extends_documentation_fragment:
- netapp.na_ontap
version_added: '2.9'
author: Milan Zink (@zeten30) <[email protected]>/<[email protected]>
description:
- Create, modify or delete LDAP client on NetApp ONTAP
options:
state:
description:
- Whether the specified LDAP client configuration exist or not.
choices: ['present', 'absent']
default: 'present'
type: str
vserver:
description:
- vserver/svm that holds LDAP client configuration
required: true
type: str
name:
description:
- The name of LDAP client configuration
required: true
type: str
ldap_servers:
description:
- Comma separated list of LDAP servers. FQDN's or IP addresses
- Required if I(state=present).
type: list
schema:
description:
- LDAP schema
- Required if I(state=present).
choices: ['AD-IDMU', 'AD-SFU', 'MS-AD-BIS', 'RFC-2307']
type: str
base_dn:
description:
- LDAP base DN
type: str
base_scope:
description:
- LDAP search scope
choices: ['subtree', 'onelevel', 'base']
type: str
port:
description:
- LDAP server port
type: int
query_timeout:
description:
- LDAP server query timeout
type: int
min_bind_level:
description:
- Minimal LDAP server bind level.
choices: ['anonymous', 'simple', 'sasl']
type: str
bind_dn:
description:
- LDAP bind user DN
type: str
bind_password:
description:
- LDAP bind user password
type: str
use_start_tls:
description:
- Start TLS on LDAP connection
choices: ['true', 'false']
type: str
referral_enabled:
description:
- LDAP Referral Chasing
choices: ['true', 'false']
type: str
session_security:
description:
- Client Session Security
choices: ['true', 'false']
type: str
s�
- name: Create LDAP client
na_ontap_ldap_client:
state: present
name: 'example_ldap'
vserver: 'vserver1'
ldap_servers: 'ldap1.example.company.com,ldap2.example.company.com'
base_dn: 'dc=example,dc=company,dc=com'
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
t
N( t
AnsibleModule( t to_native( t NetAppModulet NetAppOntapLDAPClientc B` sJ e Z d Z d � Z d d d � Z d � Z d � Z d � Z d � Z RS( s&