change kadmin to use different user than kdc when connecting to ldap

This commit is contained in:
Timo Makinen 2019-05-31 02:32:57 +03:00
parent 6c917dc696
commit 2374804bfd
2 changed files with 4 additions and 4 deletions

View file

@ -17,8 +17,8 @@
group: "{{ ansible_wheel }}"
notify: restart kdc
- name: store ldap auth credentials
shell: "( echo '{{ kerberos_kdc_pass }}' ; echo '{{ kerberos_kdc_pass }}' ) | kdb5_ldap_util stashsrvpw uid=krb5kdc,cn={{ kerberos_realm }},ou=System,{{ ldap_basedn }}"
- name: store kdc and kadmin ldap auth credentials
shell: "( echo '{{ kerberos_kdc_pass }}' ; echo '{{ kerberos_kdc_pass }}' ) | kdb5_ldap_util stashsrvpw uid=krb5kdc,cn={{ kerberos_realm }},ou=System,{{ ldap_basedn }} ; ( echo '{{ kerberos_kadmin_pass }}' ; echo '{{ kerberos_kadmin_pass }}' ) | kdb5_ldap_util stashsrvpw uid=krb5kadmin,cn={{ kerberos_realm }},ou=System,{{ ldap_basedn }}"
args:
creates: "/var/kerberos/krb5kdc/.k5.ldap.{{ kerberos_realm|lower() }}"
no_log: true