On 12/21/06, <b class="gmail_sendername">Eric Mangold</b> &lt;<a href="mailto:teratorn@twistedmatrix.com">teratorn@twistedmatrix.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 21 Dec 2006 01:45:07 -0600, Alvin Wang &lt;<a href="mailto:alvinwang@gmail.com">alvinwang@gmail.com</a>&gt; wrote:<br><br>&gt; On 12/20/06, Eric Mangold &lt;<a href="mailto:teratorn@twistedmatrix.com">teratorn@twistedmatrix.com
</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; On Wed, 20 Dec 2006 22:45:45 -0600, Alvin Wang &lt;<a href="mailto:alvinwang@gmail.com">alvinwang@gmail.com</a>&gt;<br>&gt;&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; &gt;<br>&gt;&gt; <a href="http://twistedmatrix.com/projects/core/documentation/howto/pb-cred.html">
http://twistedmatrix.com/projects/core/documentation/howto/pb-cred.html</a><br>&gt;&gt; &gt;<br>&gt;&gt; &gt; The documentation above says that credentials should be able to do<br>&gt;&gt; &gt; authentication with multiple passes.&nbsp;&nbsp;However, I have not been able to
<br>&gt;&gt; &gt; find<br>&gt;&gt; &gt; any examples of it.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; As an alternative, I was going to implement a user object with state<br>&gt;&gt; that<br>&gt;&gt; &gt; determined what it was able to do.&nbsp;&nbsp;I could force the client to
<br>&gt;&gt; conduct<br>&gt;&gt; &gt; multiple challenge responses to achieve the logged in state.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; I figured it would be better to ask the mail list for the proper way<br>&gt;&gt; to<br>&gt;&gt; &gt; do
<br>&gt;&gt; &gt; it first.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Thanks<br>&gt;&gt;<br>&gt;&gt; Excuse me if I&#39;m being dense, but what are you trying to do exactly?<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; Eric Mangold<br>
&gt;&gt; Twisted/Win32 Co-Maintainer<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Twisted-Python mailing list<br>&gt;&gt; <a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com
</a><br>&gt;&gt; <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>&gt;&gt;<br>&gt;<br>&gt; P2P application<br>&gt; Client logs onto server with Publickey
<br>&gt; Since the server does not necessarily have the same IP address, I also<br>&gt; want<br>&gt; to authenticate the server&#39;s PK also.<br>&gt;<br>&gt; Thanks<br><br>As far as I know PB doesn&#39;t provide any mechanism for the client to
<br>authenticate the server. But it should be easy to implement.<br><br>You could use the normal procedure to log in to the server. The server<br>provides various remote methods that you can call in order to have it<br>verify itself to you. Once you (the client) are satisifed, then, and only
<br>then, do you consider yourself &quot;logged in&quot;. You should be caution to<br>prevent the server from invoking methods on the client, and vise vera,<br>prior to authenticating the server.<br><br>--<br>Eric Mangold
<br>Twisted/Win32 Co-Maintainer<br><br>_______________________________________________<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br></blockquote></div><br>I was thinking that there might be something more elegant.<br><br>If I am implementing the login procedure by hand anyway, it seems like it would be simpler to just build it into 
pb.root.&nbsp; I could skip the realms/checker stuff.&nbsp; I would keep the secure stuff in a pb.referenceable and not return it unless the user passes all the tests.&nbsp; Am I missing anything?<br clear="all"><br>Thanks<br>Alvin