Compatibility changes to work on RHEL 5 with python 2.4

This commit is contained in:
rcritten@redhat.com
2007-11-30 15:53:02 -05:00
parent b04bed4e82
commit c32a960cae
13 changed files with 51 additions and 35 deletions

View File

@@ -228,7 +228,7 @@ def main():
# Set the User's password
if password is not None:
try:
client.modifyPassword(principal, None, password)
client.modifyPassword(principal, '', password)
except ipa.ipaerror.IPAError, e:
print "User added but setting the password failed."
print "%s" % (e.message)