DeemOpen / zkui

A UI dashboard that allows CRUD operations on Zookeeper.
2.36k stars 977 forks source link

如果有的节点是digest,登录成功会报错,提示 /node has no auth #80

Open Kookey opened 4 years ago

Kookey commented 4 years ago

如果有的节点是digest,登录成功会报错,提示 /node has no auth

ghost commented 4 years ago

需要认证的,可以自己改下源码 com/deem/zkui/utils/ServletUtil.java:100 zk = ZooKeeperUtil.INSTANCE.createZKConnection(zkServer, zkSessionTimeout,globalProps);

com.deem.zkui.utils.ZooKeeperUtil#createZKConnection

String scheme = globalProps.getProperty("authInfo.scheme"); String user = globalProps.getProperty("authInfo.user"); String password = globalProps.getProperty("authInfo.password"); zk.addAuthInfo(scheme, (user + ":" + password).getBytes());

vi config.cfg authInfo.scheme=digest authInfo.user=foo authInfo.password=bar