Repository: ranger
Updated Branches:
  refs/heads/ranger-1.0 3ddd087a7 -> 743e66f88


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/743e66f8
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/743e66f8
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/743e66f8

Branch: refs/heads/ranger-1.0
Commit: 743e66f88af24501d6d3bb1a4495424946c7098c
Parents: 3ddd087
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 11:01:24 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/743e66f8/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/743e66f8/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