Skip to content

Commit

Permalink
fix(ranger): add jaas to ranger
Browse files Browse the repository at this point in the history
  • Loading branch information
ElNeoX-dev authored and SteBaum committed Dec 20, 2024
1 parent 8e95361 commit 5593446
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/ranger/admin/tasks/kerberos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,11 @@
user: "{{ ranger_user }}"
group: "{{ hadoop_group }}"
mode: "0600"

- name: Template jaas.conf
ansible.builtin.template:
src: jaas.conf.j2
dest: "/etc/ranger/jaas.conf"
owner: root
group: root
mode: "777"
10 changes: 10 additions & 0 deletions roles/ranger/common/templates/jaas.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Client {
com.sun.security.auth.module.Krb5LoginModule required
debug=true
doNotPrompt=true
useKeyTab=true
keyTab="/etc/security/keytabs/rangeradmin.service.keytab"
principal="rangeradmin/{{ inventory_hostname }}.tdp@{{ realm }}"
storeKey=true
useTicketCache=false;
};

0 comments on commit 5593446

Please sign in to comment.