[Sugar-devel] [Server-devel] registration questions

Martin Langhoff martin.langhoff at gmail.com
Fri Jul 24 04:10:22 EDT 2009


On Fri, Jul 24, 2009 at 9:34 AM, Daniel Drake<dsd at laptop.org> wrote:
> Thanks for the quick response. Yes, it sounds like the following might work?
>
>  - disable/delete all Registration functionality in sugar

I would move the backend to a lib that both Sugar and a cli command
can call, and _not_ delete. Once reg is complete, it is a good idea to
signal the Sugar shell somehow so that it has a chance to give user
feedback and (in a future version) reload user profile(CC'ing
Sugar-devel).

Completely invisible states make it fairly hard to debug in-the-field,
hence my preference towards keeping the 'Registration' button in the
UI. For example, there is no UI that shows whether a backup has
competed successfully recently -- I consider that a bug.

>  - hardcode jabber server as "schoolserver" in Sugar

I would not do this... it is resolved with the auto-reg, and
hardcoding this will probably break "under a tree with salut". It sure
does in Sugar 0.84

>  - move code from shell.hardware.schoolserver into a new app,
> /usr/bin/register-with-xs (minus the bit that modifies sugar's
> profile)
>  - run register-with-xs from a NM dispatcher.d hook

Yes yes yes.

> Can you see any obvious issues with that idea? Either as a simple
> deployment-specific hack, or maybe even suitable for upstream
> XO/sugar?

In general looks good, but as I mention I'd make it dual mode. It's
more work, I know, but support issues around its "invisibility" will
cause enough grief to eat any time you can save there, IMHO...

> It would also be safe and not too resource intensive for
> register-to-xs to unconditionally attempt a registration, even if it
> was registered before, right? That would solve a long standing issue
> where registration with a 2nd school server is a pain.

Exploit-in-a-box! :-D Let me set up a wireless network with a hostname
'schoolserver', an xmlrpc script and a "welcome all users" ssh
daemon... and watch while I get everyone's private files. Yummy!

Ummmmm.



m
-- 
 martin.langhoff at gmail.com
 martin at 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


More information about the Sugar-devel mailing list