登录CouchDB后重新启动时出现问题。

huangapple go评论50阅读模式
英文:

Trouble logging into CouchDB after restarting

问题

我在我的计算机上新安装了CouchDB,并且在登录时遇到了问题。作为macOS用户,我进入了ini文件,位于

Library/Preferences/couchdb_local.ini

在那里,我修改了管理员部分,使其如下所示:

[admins]
username = 随机用户名
password = 随机密码

重新启动计算机并再次进入文件后,我可以看到用户名和密码都变成了哈希值,看起来像这样:

[admins]
username = -pbkdf2-dadsiada3f2w34f,jjfioji3jf3,10
password = -pbkdf2-f4i32f0j230jf03,3fijf203jf0,10

然而,我仍然无法使用哈希和非哈希凭据登录到localhost:5984/_utils上的Fauxton门户。我做错了什么吗?谢谢。

英文:

I newly installed CouchDB on my computer and I have been experiencing troubles logging in. As a macOS user, I enter the ini file located at

Library/Preferences/couchdb_local.ini

where I modified the admin section so it looks like

[admins]
username = randomusername
password = randompassword

After restarting my computer and entering the file again, I can see that both the username and password became hashed, looking something like

[admins]
username = -pbkdf2-dadsiada3f2w34f,jjfioji3jf3,10
password = -pbkdf2-f4i32f0j230jf03,3fijf203jf0,10

However, I'm still having troubles logging into the Fauxton portal at localhost:5984/_utils both using the hashed and unhashed credentials.

Is there anything I have done wrong? Thanks.

答案1

得分: 0

[admins]的格式是:<用户名占位符> = <密码占位符>,就像这样:

[admins]
admin = ClarkeAC
hal = killdave
dave = halsucks
英文:

No, the format for [admins] is: &lt;username placeholder&gt; = &lt;password placeholder&gt;, so like:

[admins]
admin = ClarkeAC
hal = killdave
dave = halsucks

huangapple
  • 本文由 发表于 2023年7月28日 04:53:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76783349.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定