From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80567 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-sync.el v2 Date: Wed, 09 Nov 2011 10:27:20 +0100 Organization: Probably a good idea Message-ID: References: <87mxcv3fu2.fsf@lifelogs.com> <87fwi47ryn.fsf@dod.no> <87obwsnkqv.fsf@lifelogs.com> <877h3f7gqk.fsf@dod.no> <87r51nmvr5.fsf@lifelogs.com> <87zkgb57kt.fsf@dod.no> <87mxcanbcv.fsf@lifelogs.com> <87vcqy6e59.fsf@dod.no> <87fwi2n2pt.fsf@lifelogs.com> <87mxca5uip.fsf@dod.no> <871utm5ree.fsf@dod.no> <87ty6i4c8u.fsf@dod.no> <87pqh649yk.fsf@dod.no> <877h3e5o22.fsf@topper.koldfront.dk> <87liru43q4.fsf@dod.no> <871utlmm0c.fsf@lifelogs.com> <87d3d54bno.fsf@dod.no> <87zkg92b4d.fsf@dod.no> <87d3d37ln0.fsf@dod.no> <877h3b7l1z.fsf@dod.no> <87y5vqrub5.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320830915 23042 80.91.229.12 (9 Nov 2011 09:28:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 09:28:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28850@lists.math.uh.edu Wed Nov 09 10:28:27 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RO4SG-0004Jo-Uf for ding-account@gmane.org; Wed, 09 Nov 2011 10:28:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RO4Ra-0008Lp-DX; Wed, 09 Nov 2011 03:27:42 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RO4RY-0008Lb-Hx for ding@lists.math.uh.edu; Wed, 09 Nov 2011 03:27:40 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RO4RW-0000x6-U4 for ding@lists.math.uh.edu; Wed, 09 Nov 2011 03:27:40 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RO4RT-0008Lj-Vq for ding@gnus.org; Wed, 09 Nov 2011 10:27:35 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RO4RS-00041B-N6 for ding@gnus.org; Wed, 09 Nov 2011 10:27:34 +0100 Original-Received: from 62.113.137.5 ([62.113.137.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Nov 2011 10:27:34 +0100 Original-Received: from sb by 62.113.137.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Nov 2011 10:27:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 73 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 62.113.137.5 Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:4Qav9dYnc8NKhXeXPdPNGcpw8q8= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80567 Archived-At: >>>>> Ted Zlatanov : > On Mon, 07 Nov 2011 21:08:08 +0100 Steinar Bang wrote: [snip!] SB> Where does gnus-sync get the password from? Does it prompt the user? SB> Does it save it in the auth-thingy? Note: this was more about what gnus-sync does, when confronted with a 401 Authorization Required Ie. does it request a username/password from the user? And does it persist the username/password combination? > From the inline docs: > You need to set up a server admin: > ;; 1. install CouchDB, set up a real server admin user, and create a > ;; database, e.g. "tzz" and save the URL, > ;; e.g. http://lesync.info:5984/tzz I know. I tried to do that, based on the hints in the debian couchdb config files: in the /etc/couchdb/local.ini file uncommented the [admins] section and added a username = password line, and then restarted couchdb. > and then > ;; 2. run `M-: (gnus-sync-lesync-setup "http://lesync.info:5984/tzz" "tzzadmin" "mypassword" "mysalt" t t)' Did that one as well, with the URL, tzzadmin, mypassword, and mysalt appropriately modified. > ;; (If you run it more than once, you have to remove the entry from > ;; _users yourself. That's why I didn't do it more than once. > This is intentional. This sets up a database > ;; admin for the "tzz" database, distinct from the server admin > ;; user in (1) above.) > This will create a user "tzzadmin" that is an admin for the "tzz" > database. > Look in http://lesync.info:5984/_utils/database.html?_users to look at > the users in Futon. Got two entries here. One is the one created by the gnus-sync-lesync-setup function, and the other one is called _design/auth. > Again in Futon, look at a database and click on the "security" button on > top to adjust the readers/admins list. `gnus-sync-lesync-setup' will > have already modified it for you. I have: Admins Names: ["myadmin"] Roles: [] Readers Names: ["myadmin"] Roles: [] > I didn't put this in the gnus-sync.el docs because it's really ancillary > but I guess it will trip people up over time. It could be that my real admin created in the /etc/couchdb/local.ini file hasn't been picked up by couchdb...?