7
login = raw_input('Enter user name: ')
8
password = getpass.getpass('Enter password: ')
9
ident = "%s:%s" % (login,password)
11
Pyro.core.initClient()
12
obj = Pyro.core.getProxyForURI("PYRONAME://authentication")
13
obj._setNewConnectionValidator( connvalidator.UserLoginConnValidator() )
14
obj._setIdentification( (login,password) )
16
# Try to call the method.
17
# If you supplied correct username/password, it will succeed.
18
result=obj.method('foo bar')
19
print "Result from method call: ",result