reviewed by dockerzhang
This commit is contained in:
parent
a4f5910138
commit
be33573e3f
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user