项目作者: stuvusIT

项目描述 :
This role setups and configures the pam ldap module
高级语言:
项目地址: git://github.com/stuvusIT/ansible_pam_ldap.git
创建时间: 2017-12-13T10:35:59Z
项目社区:https://github.com/stuvusIT/ansible_pam_ldap

开源协议:Creative Commons Attribution Share Alike 4.0 International

下载


pam_ldap ansible

This role setups and configures the pam ldap module

Requirements

This role requires and apt based system

Role Variables

General

Name Required/Default Description
pam_ldap_nslcd_conf {'uid': 'nslcd', 'gid': 'nslcd' } Dict containing the option key/value pairs. According to the nslcd.conf man page. If a value can be defined multiple times just use a list containg all values.
pam_ldap_access_conf [] List containing Dicts with access settings. According to the access.conf man page.

pam_ldap_access_conf

Each list entry has to have following attributes

Name Required/Default Description
permission :heavy_check_mark: Can be either a “+” character (plus) for access granted or a “-“ character (minus) for access denied.
object :heavy_check_mark: The users/group field, should be a list of one or more login names, group names, or ALL (which always matches). To differentiate user entries from group entries, group entries should be written with brackets, e.g. (group).
origins :heavy_check_mark: The origins field should be a list of one or more tty names (for non-networked logins), host names, domain names (begin with “.”), host addresses, internet network numbers (end with “.”), internet network addresses with network mask (where network mask can be a decimal number or an internet address also), ALL (which always matches) or LOCAL.

For more information please see the access.conf man page.

Example Playbook

  1. - hosts: pam_ldap
  2. roles:
  3. - role: pam_ldap
  4. pam_ldap_nslcd_conf:
  5. uri:
  6. - "ldaps://ldap01.example.com:636"
  7. base: "dc=wheel,dc=example,dc=com"
  8. pam_ldap_access_conf:
  9. - permission: +
  10. objects: (wheel)
  11. origins: ALL

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Author Information