Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

stuvusIT/ansible_pam_ldap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ✔️ Can be either a "+" character (plus) for access granted or a "-" character (minus) for access denied.
object ✔️ 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 ✔️ 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

- hosts: pam_ldap
  roles:
    - role: pam_ldap
      pam_ldap_nslcd_conf:
        uri:
          - "ldaps://ldap01.example.com:636"
        base: "dc=wheel,dc=example,dc=com"
      pam_ldap_access_conf:
        - permission: +
          objects: (wheel)
          origins: ALL

License

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

Author Information

About

This role setups and configures the pam ldap module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •