checkpoint radius client add,modify,find,del working, command line args handled correctly

This commit is contained in:
John Dennis 2007-11-26 09:46:19 -05:00
parent 9a9a7e4058
commit 2c2069d3ec
3 changed files with 3 additions and 1 deletions

View File

@ -87,6 +87,7 @@ def main():
opt_parser.error("missing Client-IP-Address")
ip_addr = args[1]
pairs['Client-IP-Address'] = ip_addr
# Get pairs from a file or stdin
if options.pair_file:

View File

@ -18,6 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
import os
import sys
from optparse import OptionParser
import ipa

View File

@ -87,6 +87,7 @@ def main():
opt_parser.error("missing Client-IP-Address")
ip_addr = args[1]
pairs['Client-IP-Address'] = ip_addr
# Verify client previously exists and get current values
radius_client = ipa.radius_client.RadiusClient()
@ -186,7 +187,6 @@ def main():
for attr,value in pairs.items():
print "\t%s = %s" % (attr, value)
radius_client = ipa.radius_client.RadiusClient()
for attr,value in pairs.items():
radius_client.setValue(radius_util.radius_client_attr_to_ldap_attr[attr], value)