Repository: ranger
Updated Branches:
  refs/heads/master 8f1625c26 -> e1346179a


RANGER-1512: Convert hostnames to lowercase when using mysql

Signed-off-by: Zsombor Gegesy <zsom...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/e1346179
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/e1346179
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/e1346179

Branch: refs/heads/master
Commit: e1346179aae59ffc3b3319cfa643f39e9aef863b
Parents: 8f1625c
Author: Attila Csoma <csoma...@gmail.com>
Authored: Thu Apr 20 13:17:27 2017 +0200
Committer: Zsombor Gegesy <zsom...@apache.org>
Committed: Wed Mar 7 10:57:51 2018 +0100

----------------------------------------------------------------------
 kms/scripts/dba_script.py            | 2 +-
 security-admin/scripts/dba_script.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/e1346179/kms/scripts/dba_script.py
----------------------------------------------------------------------
diff --git a/kms/scripts/dba_script.py b/kms/scripts/dba_script.py
index fdee37a..bcd4aa2 100755
--- a/kms/scripts/dba_script.py
+++ b/kms/scripts/dba_script.py
@@ -136,7 +136,7 @@ class BaseDB(object):
 class MysqlConf(BaseDB):
        # Constructor
        def __init__(self, 
host,SQL_CONNECTOR_JAR,JAVA_BIN,db_ssl_enabled,db_ssl_required,db_ssl_verifyServerCertificate,javax_net_ssl_keyStore,javax_net_ssl_keyStorePassword,javax_net_ssl_trustStore,javax_net_ssl_trustStorePassword,db_ssl_auth_type):
-               self.host = host
+               self.host = host.lower()
                self.SQL_CONNECTOR_JAR = SQL_CONNECTOR_JAR
                self.JAVA_BIN = JAVA_BIN
                self.db_ssl_enabled=db_ssl_enabled.lower()

http://git-wip-us.apache.org/repos/asf/ranger/blob/e1346179/security-admin/scripts/dba_script.py
----------------------------------------------------------------------
diff --git a/security-admin/scripts/dba_script.py 
b/security-admin/scripts/dba_script.py
index 53691d0..d5eaaf0 100644
--- a/security-admin/scripts/dba_script.py
+++ b/security-admin/scripts/dba_script.py
@@ -163,7 +163,7 @@ class BaseDB(object):
 class MysqlConf(BaseDB):
        # Constructor
        def __init__(self, 
host,SQL_CONNECTOR_JAR,JAVA_BIN,db_ssl_enabled,db_ssl_required,db_ssl_verifyServerCertificate,javax_net_ssl_keyStore,javax_net_ssl_keyStorePassword,javax_net_ssl_trustStore,javax_net_ssl_trustStorePassword,db_ssl_auth_type):
-               self.host = host
+               self.host = host.lower()
                self.SQL_CONNECTOR_JAR = SQL_CONNECTOR_JAR
                self.JAVA_BIN = JAVA_BIN
                self.db_ssl_enabled=db_ssl_enabled.lower()

Reply via email to