reviewed by dockerzhang

This commit is contained in:
Kent Yao 2018-12-11 16:25:42 +08:00
parent a4f5910138
commit be33573e3f
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class KyuubiAuthFactory(conf: SparkConf) extends Logging {
throw new TTransportException("Failed to start token manager", e)
}
Some(server)
case AuthType.NONE | AuthType.NOSASL => None
case AuthType.NONE | AuthType.NOSASL | AuthType.LDAP => None
case other => throw new ServiceException("Unsupported authentication method: " + other)
}

View File

@ -72,7 +72,7 @@ class PlainSaslServer(handler: CallbackHandler, authMethod: AuthMethods) extends
case 0 =>
tokenList.addLast(messageToken.toString)
messageToken.setLength(0)
case b: Byte => messageToken.append(b)
case b: Byte => messageToken.append(b.toChar)
}
tokenList.addLast(messageToken.toString)
// validate response