pika icon indicating copy to clipboard operation
pika copied to clipboard

无法单独设置管理员密码,普通用户提示 ERR NOAUTH Authentication required

Open zwc456baby opened this issue 1 year ago • 6 comments

Is this a regression?

Yes

Description

配置如下:

requirepass : xxx(管理员密码)

userpass: 

userblacklist : FLUSHALL

设置了管理员密码,然后将 userpass 设置为空,这样普通用户无需密码即可使用,对于管理命令,如:FLUSHALL 等,需要管理员密码登录才可使用。在 3.5.2 版本中,工作正常,升级到 3.5.5 后,普通用户无法连接 pika ,提示:ERR NOAUTH Authentication required

需要去除 requirepass 才可以正常连接使用,如下:

requirepass : 

userpass: 

userblacklist : FLUSHALL

只有两项均为空,才可以无需密码连接,无法单独设置管理员密码

Please provide a link to a minimal reproduction of the bug

No response

Screenshots or videos

No response

Please provide the version you discovered this bug in (check about page for version information)

Version: 3.5.5
System: Ubuntu 24

Anything else?

No response

zwc456baby avatar Oct 07 '24 12:10 zwc456baby

如图:

经过测试,从 3.5.3 开始就有这个问题,不知道是本身的默认策略已经改变,还是属于 bug?

以下是配置 微信截图_20241007205311

https://images.zwc365.com/i/2024/10/07/205323.png

以下是 3.5.3 的测试,提示无权限 微信截图_20241007205058

https://images.zwc365.com/i/2024/10/07/205129.png

以下是 3.5.2 的测试,能正常获取到值 微信截图_20241007205221

https://images.zwc365.com/i/2024/10/07/205233.png

zwc456baby avatar Oct 07 '24 12:10 zwc456baby

Bot detected the issue body's language is not English, translate it automatically.


As shown in the picture:

**After testing, this problem has occurred since 3.5.3. I don’t know if the default policy has been changed, or is it a bug? **

The following is the configuration WeChat screenshot_20241007205311

The following is a test of 3.5.3, prompting no permissions WeChat screenshot_20241007205058

The following is the test of 3.5.2, the value can be obtained normally WeChat screenshot_20241007205221

Issues-translate-bot avatar Oct 07 '24 12:10 Issues-translate-bot

用密码链接 不要直接链接即可

chejinge avatar Oct 11 '24 07:10 chejinge

Bot detected the issue body's language is not English, translate it automatically.


Use password link instead of direct link

Issues-translate-bot avatar Oct 11 '24 07:10 Issues-translate-bot

不使用密码的后续我们会改代码

chejinge avatar Oct 14 '24 07:10 chejinge

Bot detected the issue body's language is not English, translate it automatically.


If you don’t use a password, we will change the code in the future.

Issues-translate-bot avatar Oct 14 '24 07:10 Issues-translate-bot

已解决,思路如下https://cv9vkf72u6.feishu.cn/docx/Nq85dABj0o7yyhxLsvccZVa6nQe

buzhimingyonghu avatar Nov 08 '24 08:11 buzhimingyonghu

Bot detected the issue body's language is not English, translate it automatically.


Solved, the idea is as follows https://cv9vkf72u6.feishu.cn/docx/Nq85dABj0o7yyhxLsvccZVa6nQe

Issues-translate-bot avatar Nov 08 '24 08:11 Issues-translate-bot