You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by sp...@apache.org on 2021/02/09 01:20:44 UTC

[ranger] branch ranger-2.2 updated: RANGER-3169: Fixed issue where we are not reading the keystore type and truststore type configuration for LDAPS

This is an automated email from the ASF dual-hosted git repository.

spolavarapu pushed a commit to branch ranger-2.2
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.2 by this push:
     new 11a7bf8  RANGER-3169: Fixed issue where we are not reading the keystore type and truststore type configuration for LDAPS
11a7bf8 is described below

commit 11a7bf8f37af1d7501df4492de95f7c9d796ab07
Author: Sailaja Polavarapu <sp...@cloudera.com>
AuthorDate: Mon Feb 8 17:18:51 2021 -0800

    RANGER-3169: Fixed issue where we are not reading the keystore type and truststore type configuration for LDAPS
---
 .../apache/ranger/ldapusersync/process/CustomSSLSocketFactory.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/CustomSSLSocketFactory.java b/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/CustomSSLSocketFactory.java
index b361835..1f1b37d 100644
--- a/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/CustomSSLSocketFactory.java
+++ b/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/CustomSSLSocketFactory.java
@@ -52,8 +52,8 @@ public class CustomSSLSocketFactory extends SSLSocketFactory{
     	String keyStoreFilepwd = config.getSSLKeyStorePathPassword();
     	String trustStoreFile = config.getSSLTrustStorePath();
     	String trustStoreFilepwd = config.getSSLTrustStorePathPassword();
-    	String keyStoreType = KeyStore.getDefaultType();
-    	String trustStoreType = KeyStore.getDefaultType();
+    	String keyStoreType = config.getSSLKeyStoreType();
+    	String trustStoreType = config.getSSLTrustStoreType();
     	try {
 
 			KeyManager[] kmList = null;