mod_auth_gssapi: Fix keytab path config for CentOS 8
CentOS 8 doesn't apache doesn't read /etc/sysconfig/httpd anymore so try to set keytab path location in apache config files.
This commit is contained in:
parent
a591bd7e0e
commit
5d9bc1608f
2 changed files with 9 additions and 4 deletions
3
roles/mod_auth_gssapi/files/gssapi.conf
Normal file
3
roles/mod_auth_gssapi/files/gssapi.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<Location />
|
||||||
|
GssapiCredStore keytab:/etc/httpd/httpd.keytab
|
||||||
|
</Location>
|
|
@ -6,8 +6,10 @@
|
||||||
notify: restart apache
|
notify: restart apache
|
||||||
|
|
||||||
- name: set keytab path
|
- name: set keytab path
|
||||||
lineinfile:
|
copy:
|
||||||
path: /etc/sysconfig/httpd
|
dest: /etc/httpd/conf.local.d/00-gssapi.conf
|
||||||
regexp: "^KRB5_KTNAME=.*"
|
src: gssapi.conf
|
||||||
line: KRB5_KTNAME=/etc/httpd/httpd.keytab
|
mode: 0644
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
notify: restart apache
|
notify: restart apache
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue