Re: [Server-devel] Allowing Auto-Login to Moodle from 2 Domains

2009-09-28 Thread Martin Langhoff
On Sun, Sep 27, 2009 at 2:32 PM, Devon Connolly dev...@gmail.com wrote:
 logging in to moodle.  As auth_olpc only accepts connections using the
 standard schoolser...@domain.com, I would like it to additionally accept a
 no-ip.info host redirect domain.

Sounds like you may want to patch auth/olpcxs :-)

 Second, I know this is a bit more complicated, but what do I need to hack
 to allow firefox/opera to benefit from auto login?

During the startup of Browse, we add a cookie to the cookies.sqlite
file. The cookie is for the domain of the XS, and the value of it is
based on the laptop's serial number  uuid. Have a look at the moodle
code

Of course, it depedns on the XS knowing about the SN and uuid in
advance - and that happens with registration. Registration across 2
networks is not going to be easy :-/

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] Allowing Auto-Login to Moodle from 2 Domains

2009-09-28 Thread Devon Connolly


Let me explain my setup in a little more detail.  The server DNS is
currently set to the standard schoolserver.notredame.sn.  I grabbed a host
redirect at no-ip.com pointing to my WAN router and subsequently the
server at http://notredamemboro.no-ip.info (have a look).  My intention is
to allow the kids to access server services such as Moodle if they are
sick or during the weekends.  Believe it or not, a number of the kids have
access to wifi outside of school.  My other primary reason is to allow the
kids in each class to make weekly blog posts to document their experiences.

Making the host redirect resolve properly on the LAN is a piece of cake
just appending the address to the hosts file.  As you can see right now,
everything works except moodle on the WAN.  I can make it work on the WAN
by modifying the code in /config.php by simply modifying $CFG-wwwroot.
This allows for everything to resolve correctly on the LAN  WAN but
breaks auth/olpcxs.   To test, I redefined XS_FQDN and replaced
'schoolserver' with the WAN host name.  Again, everything resolves
correctly, but auth doesn't work correctly.  If I were to register an XO
with the domain no-ip.info, I imagine it would work, but wouldn't that
require patching a good deal of the ejabberd config also?   Would it be
terribly complicated to rework auth to base authentication simply on UUID
and serial number on any domain?

If you think this is more work than it is worth, it isn't necessary by any
means.  I just think it would be convenient.

Thanks for the info

On Mon, 28 Sep 2009 08:16:19 -, Martin Langhoff
martin.langh...@gmail.com wrote:

 On Sun, Sep 27, 2009 at 2:32 PM, Devon Connolly dev...@gmail.com wrote:
 logging in to moodle.  As auth_olpc only accepts connections using the
 standard schoolser...@domain.com, I would like it to additionally  
 accept a
 no-ip.info host redirect domain.

 Sounds like you may want to patch auth/olpcxs :-)

 Second, I know this is a bit more complicated, but what do I need to  
 hack
 to allow firefox/opera to benefit from auto login?

 During the startup of Browse, we add a cookie to the cookies.sqlite
 file. The cookie is for the domain of the XS, and the value of it is
 based on the laptop's serial number  uuid. Have a look at the moodle
 code

 Of course, it depedns on the XS knowing about the SN and uuid in
 advance - and that happens with registration. Registration across 2
 networks is not going to be easy :-/

 cheers,


 m


-- 
--
--
Devon Connolly
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Allowing Auto-Login to Moodle from 2 Domains

2009-09-27 Thread Devon Connolly
Rather than digging around the config files myself, I thought it'd be  
quicker to ask people that actually know what they are doing.  I know the  
server assumes LAN access to moodle only, but I was looking to allow  
students and teachers to access the server remotely.  I set up a host  
redirect to access apache over the WAN.  Everything works well, aside from  
logging in to moodle.  As auth_olpc only accepts connections using the  
standard schoolser...@domain.com, I would like it to additionally accept a  
no-ip.info host redirect domain.

Second, I know this is a bit more complicated, but what do I need to hack  
to allow firefox/opera to benefit from auto login?

Thanks in advance
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel