larsth / go9p

Automatically exported from code.google.com/p/go9p

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

authenticated server example

GoogleCodeExporter opened this issue · comments

I'm starting to use go9p for a project, but i will need authenticated (and 
preferrably encrypted) access, so it would be nice to have an authenticated 
example of any of the srv/examples.

I'll try to hack one up, but i'm not sure what I need to do...

Original issue reported on code.google.com by sor...@gmail.com on 22 Dec 2010 at 2:09

Are you planning to use both the go9p server and client for your project?

Original comment by lion...@gmail.com on 23 Dec 2010 at 6:12

Modified the code and added some examples on how to use the client and the 
server over TLS. See p/clnt/examples/tls.go and p/srv/examples/tlsramfs.go.

Original comment by lion...@gmail.com on 23 Dec 2010 at 7:01

  • Changed state: Fixed
oh nice! thank you.
No, I don't think i will need the client (at least in the begginning) as long 
as I can mount the filesystem remotely using the linux 9p driver or 9pfuse.

Original comment by sor...@gmail.com on 23 Dec 2010 at 7:51

You can't mount it directly with the linux 9p driver, it doesn't support SSL. I 
don't know if you can do it with 9pfuse.

Original comment by lion...@gmail.com on 23 Dec 2010 at 8:23

yep, that's what I was afraid of. Authentication should work across 
implementations (that support auth), though, right? So plan9, linux and go9p? 
I'm asking because i know the inferno authentication system isn't compatible 
with the plan9 one.
Also, would it be complicated to add authentication support to the tls example?
It seems to me like the Ramfs would need to implement the Auth interface (here 
http://code.google.com/p/go9p/source/browse/p/srv/examples/tlsramfs.go?r=99d3f81
dd91e17a18ec5f4945d1c7a21bb33183a#25 )
Thanks again

Original comment by sor...@gmail.com on 23 Dec 2010 at 9:26