Re: [Server-devel] Aliasing and backup

2009-06-02 Thread Martin Langhoff
On Mon, Jun 1, 2009 at 10:40 PM, Dave Bauer d...@solutiongrove.com wrote:
 Ok, I am asked here after I read the XS Blueprint for account aliasing, I am
 not sure I am thinking about this the right way.

 I registered SoaS and generated a backup and its available from Moodle just
 fine.

Cool.

 I later register another SoaS and go to the the old registration, click the
 alias tab, choose the new registration and click the Alias this account
 button.

That's the correct workflow, but there may be a bug in that it won't
show you the link to the 'available snapshots' until you have the
first backup form the 'new' SoaS.

To confirm...

 - wait until the 'new' SoaS makes the first backup
 - revisit that page - should show the empty-ish backup from the new SoaS
 - click on the link that shows all available snapshots...
 - should show you the snapshots from your 'old' SoaS


hth,



n
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Aliasing and backup

2009-06-02 Thread Dave Bauer
On Tue, Jun 2, 2009 at 6:01 AM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Mon, Jun 1, 2009 at 10:40 PM, Dave Bauer d...@solutiongrove.com
 wrote:
  Ok, I am asked here after I read the XS Blueprint for account aliasing, I
 am
  not sure I am thinking about this the right way.
 
  I registered SoaS and generated a backup and its available from Moodle
 just
  fine.

 Cool.

  I later register another SoaS and go to the the old registration, click
 the
  alias tab, choose the new registration and click the Alias this account
  button.

 That's the correct workflow, but there may be a bug in that it won't
 show you the link to the 'available snapshots' until you have the
 first backup form the 'new' SoaS.

 To confirm...

  - wait until the 'new' SoaS makes the first backup
  - revisit that page - should show the empty-ish backup from the new SoaS
  - click on the link that shows all available snapshots...
  - should show you the snapshots from your 'old' SoaS


Ok I ran the backup and then tried to login to the schoolserver from Browse.
It prefills in my login name as the aliased user instead of the new username
and my magic cookie doesn't work anymore.

I guess its changing the username when I try to login and it doesn't match.
I'll see if I can track this down, I am not sure where it gets the cookie
and how aliasing works yet.

Dave


  hth,




 n
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- School Server Architect
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff




-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Aliasing and backup

2009-06-02 Thread Martin Langhoff
On Tue, Jun 2, 2009 at 5:25 PM, Dave Bauer d...@solutiongrove.com wrote:
 Ok I ran the backup and then tried to login to the schoolserver from Browse.
 It prefills in my login name as the aliased user instead of the new username
 and my magic cookie doesn't work anymore.

Correct. Once your 'new' machine has been aliased to the old account,
you restart Browse and you're in your old account.

 I guess its changing the username when I try to login and it doesn't match.

Nothing to do with usernames :-) it's down to the serial number of the machine.

 I'll see if I can track this down, I am not sure where it gets the cookie
 and how aliasing works yet.

The aliasing is fairly high level.  In the 'login to moodle'
process, moodle checks whether your SN is aliased to any other
account. If so, it logs you into that _other_ acct instead.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Aliasing and backup

2009-06-02 Thread Dave Bauer
On Tue, Jun 2, 2009 at 11:36 AM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Tue, Jun 2, 2009 at 5:25 PM, Dave Bauer d...@solutiongrove.com wrote:
  Ok I ran the backup and then tried to login to the schoolserver from
 Browse.
  It prefills in my login name as the aliased user instead of the new
 username
  and my magic cookie doesn't work anymore.

 Correct. Once your 'new' machine has been aliased to the old account,
 you restart Browse and you're in your old account.

  I guess its changing the username when I try to login and it doesn't
 match.

 Nothing to do with usernames :-) it's down to the serial number of the
 machine.

  I'll see if I can track this down, I am not sure where it gets the cookie
  and how aliasing works yet.

 The aliasing is fairly high level.  In the 'login to moodle'
 process, moodle checks whether your SN is aliased to any other
 account. If so, it logs you into that _other_ acct instead.


Yes, for some reason it was asking for the password. I had the soas
nickname not matching on the old/new registrations. I rergistered with the
same nickname and then followed the procedure exactly and I was logged in
automatically.

Dave



 cheers,



 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- School Server Architect
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff




-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Aliasing and backup

2009-06-02 Thread Martin Langhoff
On Tue, Jun 2, 2009 at 6:05 PM, Dave Bauer d...@solutiongrove.com wrote:
 This works. After making the first backup on the new SoaS I can see the
 previous snapshots and restore individual items.

So - I'll have to fix that bug :-)



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Aliasing and backup

2009-06-01 Thread Dave Bauer
Ok, I am asked here after I read the XS Blueprint for account aliasing, I am
not sure I am thinking about this the right way.

I registered SoaS and generated a backup and its available from Moodle just
fine.

I later register another SoaS and go to the the old registration, click the
alias tab, choose the new registration and click the Alias this account
button.

I login to the XS from the new registration and an logged in automatically.
I go to my backup tab and it says this user has no backup data yet.

As an experiment I also tried aliasing in the opposite direction, going to
the new user, clicking that alias tab and choosing the old user to the same
effect.

Should the backups from the original account show up on the new aliased
account?

Thanks
Dave


-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel