【发布时间】:2019-11-02 05:49:03
【问题描述】:
我通过制作 LDAP 插件的副本并对其进行修改,创建了一个 presto 自定义密码验证器插件(内部)。您可以在此处查看该代码:https://github.com/prestodb/presto/tree/master/presto-password-authenticators/src/main/java/com/facebook/presto/password。
我创建了 Authenticator、AuthenticatorFactory 和配置的副本,并将它们修改为基本上只从配置中获取用户/密码并且只允许该用户进入。我还将新类放在 PasswordAuthenticatorPlugin 注册代码中。
我可以在 presto 启动时看到插件加载,但尽管没有出现任何错误,但它似乎没有做任何事情。我错过了什么?
【问题讨论】: