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

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


The following commit(s) were added to refs/heads/ranger-2.8 by this push:
     new 6d47a925e RANGER-5382: update admin server installation to support 
configurations for kerberized Solr (#712)
6d47a925e is described below

commit 6d47a925e7fbc23274775c25697ba826be5b186f
Author: Madhan Neethiraj <[email protected]>
AuthorDate: Fri Oct 24 12:49:50 2025 -0700

    RANGER-5382: update admin server installation to support configurations for 
kerberized Solr (#712)
    
    (cherry picked from commit 7aa0bf4ffc109c0c6986083ed1c033c9d02f3bf8)
---
 security-admin/scripts/install.properties          |  8 ++++++
 security-admin/scripts/setup.sh                    | 19 +++++++++++++
 .../main/resources/conf.dist/ranger-admin-site.xml | 32 ++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/security-admin/scripts/install.properties 
b/security-admin/scripts/install.properties
index eb157f943..0f5a093f6 100644
--- a/security-admin/scripts/install.properties
+++ b/security-admin/scripts/install.properties
@@ -230,6 +230,14 @@ admin_principal=
 admin_keytab=
 lookup_principal=
 lookup_keytab=
+audit_jaas_client_loginModuleName=
+audit_jaas_client_loginModuleControlFlag=
+audit_jaas_client_option_useKeyTab=
+audit_jaas_client_option_storeKey=
+audit_jaas_client_option_useTicketCache=
+audit_jaas_client_option_serviceName=
+audit_jaas_client_option_keyTab=
+audit_jaas_client_option_principal=
 hadoop_conf=/etc/hadoop/conf
 #
 #-------- SSO CONFIG - Start ------------------
diff --git a/security-admin/scripts/setup.sh b/security-admin/scripts/setup.sh
index 1fef99ee4..ca9c9ebe5 100755
--- a/security-admin/scripts/setup.sh
+++ b/security-admin/scripts/setup.sh
@@ -263,6 +263,16 @@ updatePropertyToFilePy(){
         check_ret_status $? "Update property failed for: " $1
 }
 
+#Update Properties to File if value is not empty
+#$1 -> propertyName $2 -> newPropertyValue $3 -> fileName
+updatePropertyToFilePyIfNotEmpty(){
+    if [ -n "${2}" ]
+    then
+        $PYTHON_COMMAND_INVOKER update_property.py $1 "${2}" $3
+        check_ret_status $? "Update property failed for: " $1
+    fi
+}
+
 init_variables(){
        curDt=`date '+%Y%m%d%H%M%S'`
        VERSION=`cat ${PWD}/version`
@@ -975,6 +985,15 @@ update_properties() {
                fi
        fi
 
+       updatePropertyToFilePyIfNotEmpty 
'xasecure.audit.jaas.Client.loginModuleName' "$(get_prop_or_default 
'audit_jaas_client_loginModuleName' $PROPFILE '')" $to_file_ranger
+       updatePropertyToFilePyIfNotEmpty 
'xasecure.audit.jaas.Client.loginModuleControlFlag' "$(get_prop_or_default 
'audit_jaas_client_loginModuleControlFlag' $PROPFILE '')" $to_file_ranger
+       updatePropertyToFilePyIfNotEmpty 
'xasecure.audit.jaas.Client.option.useKeyTab' "$(get_prop_or_default 
'audit_jaas_client_option_useKeyTab' $PROPFILE '')" $to_file_ranger
+       updatePropertyToFilePyIfNotEmpty 
'xasecure.audit.jaas.Client.option.storeKey' "$(get_prop_or_default 
'audit_jaas_client_option_storeKey' $PROPFILE '')" $to_file_ranger
+       updatePropertyToFilePyIfNotEmpty 
'xasecure.audit.jaas.Client.option.useTicketCache' "$(get_prop_or_default 
'audit_jaas_client_option_useTicketCache' $PROPFILE '')" $to_file_ranger
+       updatePropertyToFilePyIfNotEmpty 
'xasecure.audit.jaas.Client.option.serviceName' "$(get_prop_or_default 
'audit_jaas_client_option_serviceName' $PROPFILE '')" $to_file_ranger
+       updatePropertyToFilePyIfNotEmpty 
'xasecure.audit.jaas.Client.option.keyTab' "$(get_prop_or_default 
'audit_jaas_client_option_keyTab' $PROPFILE '')" $to_file_ranger
+       updatePropertyToFilePyIfNotEmpty 
'xasecure.audit.jaas.Client.option.principal' "$(get_prop_or_default 
'audit_jaas_client_option_principal' $PROPFILE '')" $to_file_ranger
+
        if [ "${sso_enabled}" == "" ]
        then
                sso_enabled="false"
diff --git a/security-admin/src/main/resources/conf.dist/ranger-admin-site.xml 
b/security-admin/src/main/resources/conf.dist/ranger-admin-site.xml
index 717004dce..2da6f1c43 100644
--- a/security-admin/src/main/resources/conf.dist/ranger-admin-site.xml
+++ b/security-admin/src/main/resources/conf.dist/ranger-admin-site.xml
@@ -407,4 +407,36 @@
                        </name>
                        <value>0</value>
                </property>
+       <property>
+               <name>xasecure.audit.jaas.Client.loginModuleName</name>
+               <value></value>
+       </property>
+       <property>
+               <name>xasecure.audit.jaas.Client.loginModuleControlFlag</name>
+               <value></value>
+       </property>
+       <property>
+               <name>xasecure.audit.jaas.Client.option.useKeyTab</name>
+               <value></value>
+       </property>
+       <property>
+               <name>xasecure.audit.jaas.Client.option.storeKey</name>
+               <value></value>
+       </property>
+       <property>
+               <name>xasecure.audit.jaas.Client.option.useTicketCache</name>
+               <value></value>
+       </property>
+       <property>
+               <name>xasecure.audit.jaas.Client.option.serviceName</name>
+               <value></value>
+       </property>
+       <property>
+               <name>xasecure.audit.jaas.Client.option.keyTab</name>
+               <value></value>
+       </property>
+       <property>
+               <name>xasecure.audit.jaas.Client.option.principal</name>
+               <value></value>
+       </property>
 </configuration>

Reply via email to