Minor fixes and improvements, mostly KDC/LDAP related.
This commit is contained in:
parent
ece5bca5b5
commit
ce6bd53319
8 changed files with 52 additions and 19 deletions
|
@ -2,3 +2,4 @@ ldap_admin_pwd: "{{ lookup('password', '/tmp/ldap_admin.pwd length=24') }}"
|
|||
ldap_pwd_file: "/root/ldap-admin.pwd"
|
||||
ldap_domain: "{{ ansible_domain | default('intern', true) }}"
|
||||
basedn: "{{ 'dc=' + ( ldap_domain | replace('^.','') | replace('.$','') | replace('.',',dc=')) }}"
|
||||
lan_homes: /home/lan
|
||||
|
|
|
@ -37,11 +37,13 @@
|
|||
no_log: true
|
||||
when: not slapd.stat.exists
|
||||
|
||||
- name: install slapd and python-ldap
|
||||
- name: install slapd, ldap-utils, ldapvi and python3-ldap
|
||||
apt:
|
||||
name:
|
||||
- slapd
|
||||
- python-ldap
|
||||
- ldap-utils
|
||||
- ldapvi
|
||||
- python3-ldap
|
||||
state: latest
|
||||
|
||||
- name: make initial slapd configuration available
|
||||
|
@ -90,7 +92,7 @@
|
|||
userPassword: "{{ foo_pwd }}"
|
||||
uidNumber: 10000
|
||||
gidNumber: 10000
|
||||
homeDirectory: /home/lan/foo
|
||||
homeDirectory: "{{ lan_homes }}/foo"
|
||||
bind_dn: "cn=admin,{{ basedn }}"
|
||||
bind_pw: "{{ ldap_admin_pwd }}"
|
||||
when: foo_pwd is defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue