You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/03/31 16:41:46 UTC

[GitHub] [couchdb] rnewson edited a comment on issue #2730: 403 accessing _users

rnewson edited a comment on issue #2730: 403 accessing _users
URL: https://github.com/apache/couchdb/issues/2730#issuecomment-606741710
 
 
   1. set `[couchdb] users_db_security_editable = true` in local.ini
   2. change security object of _users db to an empty object (the 2.0 default)
   
   ```
   curl foo:bar@localhost:15984/_users/_security -XPUT -d '{}'
   ```
   
   to restore the default behaviour;
   
   ```
   curl localhost:15984/_users/org.couchdb.user:rnewson -XPUT -d '{"type":"user","name":"rnewson", "password":"wibble", "roles":[]}'
   {"ok":true,"id":"org.couchdb.user:rnewson","rev":"1-be4d8b78890e9a4dc7fdb6daf712ea67"}
   ➜  ~ curl localhost:15984/_users/org.couchdb.user:rnewson
   {"error":"not_found","reason":"missing"}
   ➜  ~ curl localhost:15984/_users/org.couchdb.user:rnewson -u rnewson:wibble
   {"_id":"org.couchdb.user:rnewson","_rev":"1-be4d8b78890e9a4dc7fdb6daf712ea67","type":"user","name":"rnewson","roles":[],"password_scheme":"pbkdf2","iterations":10,"derived_key":"e654649d2d3aa9b0dea54d89a942a42c2f7ccb37","salt":"53a8ad5802e6c1d0a59090b6d52d7aa1"}
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services