[Twisted-Python] Re : Re : Telnet server using Twisted and AuthenticatingTelnetProtocol

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue Sep 1 17:37:12 EDT 2009

On 08:49 pm, filoufake-python at yahoo.fr wrote:
>Thanks to your help, the server now requests a username and password 
>for the authentication.
>Once the password has been enterred, nothing happened on the client 
>side. I'm even not able to escape from the client. I have to ctrl-c in 
>the server console.
>If I well understood the doc, for each state of the connection a method 
>is called: telnet_User called when state = 'User', telnet_Password 
>called when state = 'Password' and at the end telnet_Command (to be 
>written by me).
>I have added my "telnet_Command" method into my ITelnetProtocol 
>implementation return by requestAvatar, but it is never called.
>In the telnet_Password method, the deferred calls _cbLogin in case of 
>good authentication or _ebLogin.
>I could verify that _cbLogin is well called but it seems the 
>application blocks in.

It's hard to say what's going wrong without being able to see all of the 
code.  A short, self contained, correct example (<http://sscce.org/>) 
would help a lot.


More information about the Twisted-Python mailing list