def cbServerGreeting(proto, username, password):
 tp = TrivialPrompter()
 stdio.StandardIO(tp)
 proto.prompt = tp.prompt
 proto.display = tp.display
 return proto.authenticate(password).addCallback(cbAuthentication, proto).addErrback(ebAuthentication, proto, username, password)

def cbServerGreeting ( proto , username , password ) : tp = TrivialPrompter ( ) stdio . StandardIO ( tp ) proto . prompt = tp . prompt proto . display = tp . display return proto . authenticate ( password ) . addCallback ( cbAuthentication , proto ) . addErrback ( ebAuthentication , proto , username , password )
initial callback - invoked after the server sends us its greet message .