[Spacewalk-list] API using hashed SATELLITE_PASSWORD

Justin Edmands shockwavecs at gmail.com
Thu May 8 17:10:12 UTC 2014


We would like to use a hashed password with the API. Example below:

#!/usr/bin/pythonimport xmlrpclib

SATELLITE_URL = "http://satellite.example.com/rpc/api"
SATELLITE_LOGIN = "username"
SATELLITE_PASSWORD = "password"

client = xmlrpclib.Server(SATELLITE_URL, verbose=0)

key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD)list =
client.user.list_users(key)for user in list:
   print user.get('login')

client.auth.logout(key)


Will this cause any problems in other areas? Will it work at all?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140508/73a4daeb/attachment.htm>


More information about the Spacewalk-list mailing list