Skip to content

Commit

Permalink
Adding server principal and principal
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhukar525722 committed Sep 29, 2024
1 parent 4a1d02e commit 0f24583
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,22 @@ public static JdbcConnectionParams extractURLComponents(String uri, Properties i
}
}

if (!connParams.getSessionVars().containsKey(AUTH_KYUUBI_SERVER_PRINCIPAL)) {
if (info.containsKey(AUTH_KYUUBI_SERVER_PRINCIPAL)) {
connParams
.getSessionVars()
.put(AUTH_KYUUBI_SERVER_PRINCIPAL, info.getProperty(AUTH_KYUUBI_SERVER_PRINCIPAL));
}
}

if (!connParams.getSessionVars().containsKey(AUTH_PRINCIPAL)) {
if (info.containsKey(AUTH_PRINCIPAL)) {
connParams
.getSessionVars()
.put(AUTH_PRINCIPAL, info.getProperty(AUTH_PRINCIPAL));
}
}

if (info.containsKey(AUTH_TYPE)) {
connParams.getSessionVars().put(AUTH_TYPE, info.getProperty(AUTH_TYPE));
}
Expand Down

0 comments on commit 0f24583

Please sign in to comment.