aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java
diff options
context:
space:
mode:
Diffstat (limited to 'exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java')
-rw-r--r--exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java b/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java
index 57ad4d51b..4e4c80e97 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserConnectionConfig.java
@@ -33,6 +33,7 @@ class UserConnectionConfig extends AbstractConnectionConfig {
private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(UserConnectionConfig.class);
private final boolean authEnabled;
+ private final boolean sslEnabled;
private final InboundImpersonationManager impersonationManager;
private final UserServerRequestHandler handler;
@@ -75,10 +76,16 @@ class UserConnectionConfig extends AbstractConnectionConfig {
} else {
authEnabled = false;
}
-
impersonationManager = !config.getBoolean(ExecConstants.IMPERSONATION_ENABLED)
? null
: new InboundImpersonationManager();
+
+ sslEnabled = config.getBoolean(ExecConstants.USER_SSL_ENABLED);
+
+ if(isSSLEnabled() && isAuthEnabled() && isEncryptionEnabled()){
+ logger.warn("The server is configured to use both SSL and SASL encryption (only one should be configured).");
+ }
+
}
@Override
@@ -90,6 +97,10 @@ class UserConnectionConfig extends AbstractConnectionConfig {
return authEnabled;
}
+ boolean isSSLEnabled() {
+ return sslEnabled;
+ }
+
InboundImpersonationManager getImpersonationManager() {
return impersonationManager;
}