diff options
author | John Dennis <jdennis@redhat.com> | 2007-11-13 20:05:02 -0500 |
---|---|---|
committer | John Dennis <jdennis@redhat.com> | 2007-11-13 20:05:02 -0500 |
commit | eab5a89d4a3e8159348b5a709cd4401c9784f058 (patch) | |
tree | 8e7c00a1ea76a348cdacf0f1c4f8ad88d1ae455e /ipa-admintools/ipa-addradiusclient | |
parent | 152f8e33928d9222257a272fb573aa9ce7d37578 (diff) | |
download | freeipa-eab5a89d4a3e8159348b5a709cd4401c9784f058.tar.gz freeipa-eab5a89d4a3e8159348b5a709cd4401c9784f058.tar.xz freeipa-eab5a89d4a3e8159348b5a709cd4401c9784f058.zip |
ipa-addradiusclient now working
Diffstat (limited to 'ipa-admintools/ipa-addradiusclient')
-rw-r--r-- | ipa-admintools/ipa-addradiusclient | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ipa-admintools/ipa-addradiusclient b/ipa-admintools/ipa-addradiusclient index 5772b4d8e..29fac531b 100644 --- a/ipa-admintools/ipa-addradiusclient +++ b/ipa-admintools/ipa-addradiusclient @@ -163,7 +163,7 @@ def main(): nastype = None desc = None - client=ipa.radius_client.RadiusClient() + radius_client = ipa.radius_client.RadiusClient() options, args = parse_options() # client address is required @@ -205,29 +205,29 @@ def main(): #print "ip_addr=%s secret=%s name=%s nastype=%s desc=%s" % (ip_addr, secret, name, nastype, desc) if ip_addr is not None: - client.setValue('radiusClientNASIpAddress', ip_addr) + radius_client.setValue('radiusClientNASIpAddress', ip_addr) else: print "client IP Address is required" return 1 if secret is not None: - client.setValue('radiusClientSecret', secret) + radius_client.setValue('radiusClientSecret', secret) else: print "client secret is required" return 1 if name is not None: - client.setValue('radiusClientShortName', name) + radius_client.setValue('radiusClientShortName', name) if nastype is not None: - client.setValue('radiusClientNASType', nastype) + radius_client.setValue('radiusClientNASType', nastype) if desc is not None: - client.setValue('description', desc) + radius_client.setValue('description', desc) try: - client = ipaclient.IPAClient() - client.add_radius_client(client) + ipa_client = ipaclient.IPAClient() + ipa_client.add_radius_client(radius_client) print "successfully added" except xmlrpclib.Fault, f: print f.faultString |