.. _dellemc.enterprise_sonic.sonic_ldap_module:
***********************************
dellemc.enterprise_sonic.sonic_ldap
***********************************
**Configure global LDAP server settings on SONiC.**
Version added: 2.5.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides configuration management of global LDAP server parameters on devices running SONiC.
- Configure VRF instance before configuring VRF to be used for LDAP server connection.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
Specifies the LDAP server related configuration.
|
|
base
string
|
|
Configure base distinguished name.
|
|
bind_timelimit
integer
|
|
Configure connect time limit (0 to 65535).
|
|
binddn
string
|
|
Configure distinguished name to bind.
|
|
bindpw
dictionary
|
|
Configure credentials to bind
|
|
|
encrypted
boolean
|
|
Indicates whether the password is encrypted text.
|
|
|
pwd
string
/ required
|
|
Authentication password for the bind.
|
|
idle_timelimit
integer
|
|
Configure NSS idle time limit (0 to 65535).
Applicable only for global and nss.
|
|
map
dictionary
|
|
Configure LDAP server for map.
Applicable only for global.
|
|
|
attribute
list
/ elements=dictionary
|
|
Configure attribute map.
from and to are required together.
|
|
|
|
from
string
|
|
Configure attribute map key.
|
|
|
|
to
string
|
|
Configure attribute map value.
|
|
|
default_attribute
list
/ elements=dictionary
|
|
Configure default attribute map.
from and to are required together.
|
|
|
|
from
string
|
|
Configure default attribute map key.
|
|
|
|
to
string
|
|
Configure default attribute map value.
|
|
|
map_remote_groups_to_sonic_roles
list
/ elements=dictionary
|
|
Configure mapping for remote groups to sonic roles.
remote_group and sonic_roles are required together.
|
|
|
|
remote_group
string
|
|
Map remote groups to SONiC roles.
|
|
|
|
sonic_roles
list
/ elements=string
|
Choices:
- admin
- operator
- netadmin
- secadmin
|
Configure SONiC roles.
|
|
|
objectclass
list
/ elements=dictionary
|
|
Configure Objectclass map.
from and to are required together.
|
|
|
|
from
string
|
|
Configure Objectclass map key.
|
|
|
|
to
string
|
|
Configure Objectclass map value.
|
|
|
override_attribute
list
/ elements=dictionary
|
|
Configure override attribute map.
from and to are required together.
|
|
|
|
from
string
|
|
Configure override attribute map key.
|
|
|
|
to
string
|
|
Configure override attribute map value.
|
|
name
string
/ required
|
Choices:
- global
- nss
- pam
- sudo
|
Specifies the LDAP type.
|
|
nss_base_group
string
|
|
Configure NSS search base for group map.
Applicable only for global and nss.
|
|
nss_base_netgroup
string
|
|
Configure NSS search base for netgroup map.
Applicable only for global and nss.
|
|
nss_base_passwd
string
|
|
Configure NSS search base for passwd map.
Applicable only for global, nss and pam.
|
|
nss_base_shadow
string
|
|
Configure NSS search base for shadow map.
Applicable only for global and nss.
|
|
nss_base_sudoers
string
|
|
Configure NSS search base for sudoers map.
Applicable only for global and nss.
|
|
nss_initgroups_ignoreusers
string
|
|
Configure NSS init groups ignore users.
Applicable only for global and nss.
|
|
nss_skipmembers
boolean
|
|
Configure NSS skipmembers
|
|
pam_filter
string
|
|
Configure PAM filter.
Applicable only for global and pam.
|
|
pam_group_dn
string
|
|
Configure PAM Group Distinguished name.
Applicable only for global and pam.
|
|
pam_login_attribute
string
|
|
Configure PAM Login attribute.
Applicable only for global and pam.
|
|
pam_member_attribute
string
|
|
Configure PAM Member attribute.
Applicable only for global and pam.
|
|
port
integer
|
|
Configure server port (1 to 65535).
|
|
retry
integer
|
|
Configure retransmit attempt (0 to 10).
|
|
scope
string
|
|
Configure the search scope.
Applicable only for global, nss and pam.
|
|
security_profile
string
|
|
Configure security profile for LDAP.
Applicable only for global.
|
|
servers
list
/ elements=dictionary
|
|
Configure host name or IP address for a LDAP server.
Applicable only for global.
|
|
|
address
string
/ required
|
|
Hostname or IP address of LDAP server.
|
|
|
port
integer
|
|
Configure server port number (1 to 65535).
|
|
|
priority
integer
|
|
Configure priority (1 to 99).
|
|
|
retry
integer
|
|
Configure retransmit attempt (0 to 10).
|
|
|
server_type
string
|
Choices:
- all
- nss
- sudo
- pam
- nss_sudo
- nss_pam
- sudo_pam
|
Configure server type.
|
|
|
ssl
string
|
Choices:
- on
- off
- start_tls
|
Configure TLS configuration.
|
|
source_interface
string
|
|
Configure source interface to be used as source IP for the LDAP packets.
Applicable only for global.
Full name of the Layer 3 interface, i.e. Eth1/1.
|
|
ssl
string
|
Choices:
- on
- off
- start_tls
|
Configure TLS configuration.
|
|
sudoers_base
string
|
|
Configure sudo base distinguished name for queries.
Applicable only for global and sudo.
|
|
sudoers_search_filter
string
|
|
Configure sudo search filter for queries.
Applicable only for global and sudo.
|
|
timelimit
integer
|
|
Configure search time limit (1 to 65535).
|
|
version
integer
|
|
Configure LDAP version 2 or 3.
|
|
vrf
string
|
|
Configure VRF to be used for LDAP server connection.
Applicable only for global.
|
|
state
string
|
Choices:
merged ←
- deleted
- replaced
- overridden
|
Specifies the operation to be performed on the LDAP server configured on the device.
In case of merged, the input configuration will be merged with the existing LDAP server configuration on the device.
In case of deleted, the existing LDAP server configuration will be removed from the device.
In case of overridden, all the existing LDAP server configuration will be deleted and the specified input configuration will be installed.
In case of replaced, the existing LDAP server configuration on the device will be replaced by the configuration in the playbook for each LDAP server group configured by the playbook.
|