summaryrefslogtreecommitdiffstats
path: root/ipa-admintools/ipa-findradiusclient
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-admintools/ipa-findradiusclient')
-rw-r--r--ipa-admintools/ipa-findradiusclient15
1 files changed, 4 insertions, 11 deletions
diff --git a/ipa-admintools/ipa-findradiusclient b/ipa-admintools/ipa-findradiusclient
index 63d51007..a922c6ea 100644
--- a/ipa-admintools/ipa-findradiusclient
+++ b/ipa-admintools/ipa-findradiusclient
@@ -22,6 +22,7 @@ import sys
from optparse import OptionParser
import ipa
from ipa.radius_client import *
+from ipa import radius_util
import ipa.ipaclient as ipaclient
import ipa.ipavalidate as ipavalidate
import ipa.config
@@ -45,21 +46,13 @@ def parse_options():
#------------------------------------------------------------------------------
-attr_to_name = ipa.ipautil.CIDict({
- 'radiusClientNASIpAddress' : 'IP Address',
- 'radiusClientSecret' : 'Secret',
- 'radiusClientNASType' : 'NAS Type',
- 'radiusClientShortName' : 'Name',
- 'description' : 'Description',
- })
-
# FIXME
def usage():
print "ipa-findradiusclients ip_addr [ip_addr ...]"
sys.exit(1)
def main():
- attrs=['radiusClientNASIpAddress', 'radiusClientSecret', 'radiusClientNASType', 'radiusClientShortName', 'description']
+ attrs=['radiusClientIPAddress', 'radiusClientSecret', 'radiusClientNASType', 'radiusClientShortName', 'description']
options, args = parse_options()
@@ -82,10 +75,10 @@ def main():
attrs = radius_client.attrList()
attrs.sort()
- print "%s:" % radius_client.getValues('radiusClientNASIpAddress')
+ print "%s:" % radius_client.getValues('radiusClientIPAddress')
for attr in attrs:
value = radius_client.getValues(attr)
- print "\t%s = %s" % (attr_to_name[attr], value)
+ print "\t%s = %s" % (radius_util.client_ldap_attr_to_name[attr], value)
except xmlrpclib.Fault, f:
print f.faultString