完成所有配置后,Zookeeper身份验证不起作用

问题描述

我按照教程回答了这个问题: Kafka SASL zookeeper authentication
并且我在server.properties中设置了zookeeper.set.acl = true,但是我仍然可以在端口2181上访问zookeeper,并且任何人都可以通过以下方式使用该软件:<Entry x:Name="Password" IsPassword="True" Keyboard="Numeric" MaxLength="8" ReturnType="Next" /> <Entry x:Name="ConfirmPassword" IsPassword="True" Keyboard="Numeric" MaxLength="8" ReturnType="Done" /> <Frame x:Name="RedBar" BackgroundColor="#E1444D" IsVisible="true"> <BoxView /> </Frame> <Frame x:Name="GreenBar" BackgroundColor="#24D27F" IsVisible="false"> <BoxView /> </Frame> <Button x:Name="PasswordButton" IsEnabled="False" Text="Submit"> </Button>
ps:我将服务器的DN替换为public PasswordPage() { InitializeComponent(); if (Password.Text == ConfirmPassword.Text) { RedBar.IsVisible = false; GreenBar.IsVisible = true; PasswordButton.IsEnabled = true; } else { RedBar.IsVisible = true; GreenBar.IsVisible = false; PasswordButton.IsEnabled = false; } }

解决方法

身份验证执行功能最近已在ZooKeeper代码库中提交,并且afaik尚未发布支持该功能的稳定版本。

当您打开SASL身份验证时,它将可用,但是如果没有它,客户端仍然可以连接。因此,建议将ACL与身份验证一起使用,以防止未经身份验证的用户访问敏感数据。