XS Blueprints:User account aliasing

From OLPC
Revision as of 10:27, 31 March 2009 by Martinlanghoff (talk | contribs) (New page: This is an important user administratino feature in the XS, affecting the services that rely on the mapping between the laptop identity and the user identity. Currently this means * Moodl...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is an important user administratino feature in the XS, affecting the services that rely on the mapping between the laptop identity and the user identity. Currently this means

  • Moodle.
    • automatic sign-on
    • access to the backups is specially important
  • ds-backup which performs backups via ssh+rsync

Use cases

Replacement: A laptop is replaced due to theft of breakage. From the point of view of the XS, the same laptop casing with a different motherboard is a different laptop. Teachers need to be able to mark the new laptop as associated to the old account.

Workflow

  1. Switch on the new laptop
    1. Initialise it with a user that has a new, recognisable identifier
    2. Associate to the right Wifi network and register with the XS
  2. On the teacher's laptop
    1. Open Browse.xo and visit Moodle's Admin->Users->Browse to find the 'old' user account.
    2. Select the 'alias' tab
    3. In the alias tab, find the new laptop in the listing, and select it
  3. On the new laptop
    1. Open Browse.xo and visit Moodle. It should auto-login to the "old" user account.
    2. Visit the 'personal profile' page clicking on the top-right link
    3. Click on the 'backup' tab
    4. The backup pages should show a combined view of the backups of the old and new accounts. (You many need to allow for enough time for the backup to run from the old and new laptops to see this in action.)


Notes

  • Un-aliasing: You can remove the aliasing by going to either the new or old accounts -- their alias page offers a break link button.
  • Doing it late: the user can no longer access the new account created, but the work done by that user is still available. Ideally, the aliasing is done immediately after registration.
  • Course enrolments:: will have to be re-done manually if you are using manual course enrolments.

It is relatively easy to make the user aliasing work on the Moodle side, so that's what we do. The ssh / rsync side is client-driven, so we don't alias the accounts there, the new laptop will continue to ssh/rsync to its new identity, unaware of the aliasing.