Skip to content

Commit 78fe02e

Browse files
author
Jason Gerlowski
committed
LWSHADOOP-721: Use ticketCache for Solr->ZK Conn
Prior to this commit, when Solr was connecting to ZK with Kerberos enabled, it would use a specified keytab only. It would not attempt to connect via a ticket cache. With this commit, Solr will attempt to use the ticket cache first, before falliong back to explicitly using the keytab. For more information, see: https://docs.oracle.com/javase/8/docs/jre/api/security/jaas/spec/com/sun/security/auth/module/Krb5LoginModule.html
1 parent b5a302a commit 78fe02e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/main/mpack/common-services/SOLR/5.5.5/package/templates/solr_server_jaas.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Client {
33
useKeyTab=true
44
keyTab="{{solr_kerberos_keytab}}"
55
storeKey=true
6-
useTicketCache=false
6+
useTicketCache=true
77
debug=false
88
principal="{{solr_kerberos_principal}}";
9-
};
9+
};

src/main/mpack/common-services/SOLR/6.6.2/package/templates/solr_server_jaas.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Client {
33
useKeyTab=true
44
keyTab="{{solr_kerberos_keytab}}"
55
storeKey=true
6-
useTicketCache=false
6+
useTicketCache=true
77
debug=false
88
principal="{{solr_kerberos_principal}}";
9-
};
9+
};

src/main/mpack/common-services/SOLR/7.3.1/package/templates/solr_server_jaas.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Client {
33
useKeyTab=true
44
keyTab="{{solr_kerberos_keytab}}"
55
storeKey=true
6-
useTicketCache=false
6+
useTicketCache=true
77
debug=false
88
principal="{{solr_kerberos_principal}}";
9-
};
9+
};

0 commit comments

Comments
 (0)