roumano.ldap_client
Requirements
- Optional: Define a variable
domainnameto update/etc/hostswith the IP and hostname of the LDAP server.
Example of a group_vars/inventory.yml:
---
ldap:
ssl: exemple_ca.crt
server: "ldaps://ldap1/,ldaps://ldap2/"
base: "dc=exemple,dc=com"
bind: "cn=readonly"
servers:
- hostname: ldap1
ip: 10.0.0.1
- hostname: ldap2
ip: 10.0.0.2
domainname: 'aws.edifixio.com'
Example of how to use:
- { role: ldap_client, when: ldap is defined and ldap.base is defined and ldap.server is defined }
Tasks to perform:
- Install the necessary LDAP packages:
- For Debian:
sssd-ldap,sssd-tools,sudo - For RedHat:
authconfig,sssd-ldap,sssd-tools,sudo,openldap-clients
- For Debian:
- Push SSL certificate if there is one.
- Update
/etc/hostsfor the LDAP server. - Update
/etc/nsswitch.conf(addsss). - Enable the
sssdservice to start at machine boot. - Run
authconfig(on RedHat) to configure PAM and other settings. - Run
pam-auth-update(on Debian) to configure PAM. - Enable home directory creation at the first login using
pam_mkhomedir.so(for Debian). - Configure
/etc/openldap/ldap.conffor default LDAP parameters inldapsearch. - In
SSHD: AddAuthorizedKeysCommandandAuthorizedKeysCommandUserin/etc/ssh/sshd_configto retrieve SSH keys from LDAP.
Informazioni sul progetto
Role to install and configuration ldap client
Installa
ansible-galaxy install roumano.ldap_clientLicenza
gpl-3.0
Download
189
Proprietario
