【问题标题】:ArangoDB REST API: Unable to set user passwordArangoDB REST API:无法设置用户密码
【发布时间】:2016-07-13 06:26:53
【问题描述】:

我可以按照文档中的说明创建用户:

curl -X POST --user root:root --data-binary @- --dump - http://localhost:8529/_api/user <<EOF
{ 
  "user" : "testUser", 
  "password" : "secure" 
}
EOF

但密码参数似乎被 Arango 忽略了。

curl -v --user testUser:secure http://localhost:8529/_api/user/testUser

返回 401

同时:

curl -v --user testUser: http://localhost:8529/_api/user/testUser

返回 200

我在这里做错了吗?

【问题讨论】:

    标签: rest authentication arangodb nosql


    【解决方案1】:

    我不得不原谅我们的文档团队 - 你显然从

    复制了 CURL 示例

    https://docs.arangodb.com/3.0/HTTP/UserManagement/index.html

    示例的帖子正文中有错字(在 3.0 发布周期中添加)。由于 body 参数参数描述对它的命名,密码是通过 passwd 键而不是 password 键指定的。

    错误已得到纠正,文档的更新版本将很快上线。

    感谢您花时间深入挖掘。

    【讨论】:

      猜你喜欢
      • 2019-09-21
      • 2012-09-15
      • 2021-05-03
      • 2013-07-07
      • 2021-12-20
      • 1970-01-01
      • 2019-05-27
      • 2012-10-14
      • 1970-01-01
      相关资源
      最近更新 更多