I'm trying to use the rhnreg_ks program to automatically configure my
machine during kickstart for the Red Hat Network. I am successful if I do:
rhnreg_ks --username=myname --password=mypasswd
--email=james.martin@xxxxxxxxx
however, if I use the --cryptedpassword option I get:
Traceback (innermost last):
File "/usr/sbin/rhnreg_ks", line 244, in ?
main()
File "/usr/sbin/rhnreg_ks", line 205, in main
ret = rhnreg.reserveUser(username, password)
File "/usr/share/rhn/register/rhnreg.py", line 457, in reserveUser
ret = doCall(s.registration.reserve_user, username, password)
File "/usr/share/rhn/register/rhnreg.py", line 153, in doCall
ret = apply(method, args)
File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 689, in
__call__
return self.__send(self.__name, args)
File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 731, in
__request
request = dumps(params, methodname)
File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 505, in dumps
data = m.dumps(params)
File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 264, in dumps
self.__dump(v)
File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 275, in __dump
raise TypeError, "cannot marshal %s objects" % type(value)
TypeError: cannot marshal <type 'None'> objects
Of course I'd much rather crypt the password so people can't glean it
from the kickstart file. Has anyone else tried to do this?
Thanks,
James