Re: [fossil-users] Incorrect password during 'fossil config pull user url'

2014-12-05 Thread Andy Bradford
Thus said Michael L. Barrow on Thu, 04 Dec 2014 13:34:42 -0800:

 What  I'm trying  to do  is  document the  process of  creating a  new
 repository that will be in the same login group of a master repo. From
 my understanding, you still need to  have the user accounts created in
 the secondary repos even if they're in the same login group.

I haven't played much with login  groups, but in my experimentation with
the web UI it seems that if you  add a user in one repository, it has an
option called Scope that allows you  to apply it to all the repositories
in the login group. If you check that option, when changing the user, it
will take effect in all repositories in the group.

I don't know if there is a similar Scope option when managing users from
the command line, but it seems like for a login group, just using the UI
will work.

 Is there a better best practice for doing this?

I would suggest using fossil config  export/import user but I think I've
misused  it,  or  found  a  bug.  I  did  ``fossil  config  export  user
fossil.users'' and  then used  ``fossil config import  fossil.users'' in
another repository  and all users but  the 2 listed in  the fossil.users
file were wiped out of the target repository.

The problem I  see with this is that it  wiped out anonymous, developer,
nobody, reader  and the  default setup user  initially created  from the
repository.

Devs: Is  this really how it  should be working? Should  ``fossil export
user'' also export the default users?

I suppose there is also ``fossil config merge fossil.users'' which won't
wipe them out, but  it certainly was a bit unexpected  to lose all those
users (thankfully a test repo).

Andy
-- 
TAI64 timestamp: 40005482744d


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Incorrect password during 'fossil config pull user url'

2014-12-04 Thread Richard Hipp
On Thu, Dec 4, 2014 at 2:40 AM, Michael L. Barrow mlbar...@barrow.me
wrote:

 I am running 1.29 and trying to pull user account information from a
 server into a newly-initialized repo. When I do the fossil config pull user
 url command, I get a password incorrect.

 I am using the same URL I used to clone the repo.

 URL is of the form:
 https://m...@hostname.example.com/fossil/thesourcerepo

 This is the first time doing a config pull, so I could be doing something
 goofy. Thoughts?


Should be working.  Are you *sure* you typed the right password?



 P.S. me has 's' privs on thesourcerepo.

 --
 michael at barrow dot me
 +1.408.782.4249

 Do not anticipate trouble, or
 worry about what may never happen.
 Keep in the sunlight. -- B. Franklin

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Incorrect password during 'fossil config pull user url'

2014-12-04 Thread Michael L. Barrow

On 12/4/14, 5:09 AM, Richard Hipp wrote:


Should be working.  Are you *sure* you typed the right password?




Yes -- I am sure. For good measure, I just tried it again. Both times I 
copied and pasted the password


~ $ mkdir /tmp/f
~ $ fossil clone https://mbar...@server.example.com/fossil/master 
/tmp/f/master.fossil

password for mbarrow:
remember password (Y/n)?
Round-trips: 2   Artifacts sent: 0  received: 15
Clone finished with 575 bytes sent, 133206 bytes received
Rebuilding repository meta-data...
  100.0% complete...
project-id: 47bfe3b22950f6522f3a6f2727f198adf62a1f82
admin-user: mbarrow (password is 65330c)
~ $ mkdir /tmp/i
~ $ fossil init /tmp/i/test.fossil
project-id: cbabb511a5409961950c5f98d26cae74b49c5fca
server-id:  8c35918cfb451162177d6661eef41c8d8905d75c
admin-user: mlbarrow (initial password is 60d0c7)
~ $ mkdir /tmp/ic
~ $ cd /tmp/ic
ic $ fossil open /tmp/i/test.fossil
project-name: unnamed
repository:   /tmp/i/test.fossil
local-root:   /private/tmp/ic/
config-db:/Volumes/sbb/Users/mlbarrow/.fossil
project-code: cbabb511a5409961950c5f98d26cae74b49c5fca
checkout: ec8d744462ffc3259134f6f2565768d4513a3e8a 2014-12-04 
18:30:06 UTC

leaf: open
tags: trunk
comment:  initial empty check-in (user: mlbarrow)
checkins: 1
ic $ fossil config pull skin 
https://mbar...@server.example.com/fossil/master

password for mbarrow:
Round-trips: 1   Artifacts sent: 0  received: 0
Error: login failed
password for mbarrow:
Round-trips: 2   Artifacts sent: 0  received: 0
Error: login failed
password for mbarrow:
Round-trips: 3   Artifacts sent: 0  received: 0
Error: login failed
Round-trips: 3   Artifacts sent: 0  received: 0
Pull finished with 948 bytes sent, 888 bytes received
ic $ fossil ver
This is fossil version 1.29 [3e5ebe2b90] 2014-06-12 17:25:56 UTC

--
michael at barrow dot me
+1.408.782.4249

Do not anticipate trouble, or
worry about what may never happen.
Keep in the sunlight. -- B. Franklin

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Incorrect password during 'fossil config pull user url'

2014-12-04 Thread Andy Bradford
Thus said Michael L. Barrow on Thu, 04 Dec 2014 10:44:07 -0800:

 ~ $ fossil init /tmp/i/test.fossil
 project-id: cbabb511a5409961950c5f98d26cae74b49c5fca
 server-id:  8c35918cfb451162177d6661eef41c8d8905d75c
 admin-user: mlbarrow (initial password is 60d0c7)

So you're trying to pull the config from a different project?

I'm  not sure  if that  is even  supported, however,  there is  ``fossil
config export'' and ``fossil config import'' that might work.

Assuming  that  pulling the  config  from  a  different project  is  not
supported,  I wonder  why you  didn't  get a  project-id mismatch  error
instead of a login error.

Andy
--
TAI64 timestamp: 40005480b159
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users