summaryrefslogtreecommitdiffstats
path: root/ipa-admintools/ipa-findradiusprofile
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2007-11-28 12:06:06 -0500
committerJohn Dennis <jdennis@redhat.com>2007-11-28 12:06:06 -0500
commitd7a7ba4f45d189c841c28bd5bfbe1f4b4b721154 (patch)
treeac4ba987ffcd12a362869ec9f8207d24440edcea /ipa-admintools/ipa-findradiusprofile
parent904b76059cec667a9c155021c8e33ce1dbf2b389 (diff)
downloadfreeipa.git-d7a7ba4f45d189c841c28bd5bfbe1f4b4b721154.tar.gz
freeipa.git-d7a7ba4f45d189c841c28bd5bfbe1f4b4b721154.tar.xz
freeipa.git-d7a7ba4f45d189c841c28bd5bfbe1f4b4b721154.zip
add user profile command line arg to all radius
profile command line tools to select between shared and per user profiles modify AttributeValueCompleter so default values prefer previously entered values in editing session
Diffstat (limited to 'ipa-admintools/ipa-findradiusprofile')
-rw-r--r--ipa-admintools/ipa-findradiusprofile5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipa-admintools/ipa-findradiusprofile b/ipa-admintools/ipa-findradiusprofile
index 6fd5b466..ba714068 100644
--- a/ipa-admintools/ipa-findradiusprofile
+++ b/ipa-admintools/ipa-findradiusprofile
@@ -53,6 +53,8 @@ def help_option_callback(option, opt_str, value, parser, *args, **kwargs):
def main():
opt_parser = OptionParser(add_help_option=False)
+ opt_parser.add_option("-s", "--shared", dest="shared", default=False, action='store_true',
+ help="profile is shared")
opt_parser.add_option("-h", "--help", action="callback", callback=help_option_callback,
help="detailed help information")
@@ -65,10 +67,11 @@ def main():
opt_parser.error("missing UID(es)")
uids = args[1:]
+ user_profile = not options.shared
try:
ipa_client = ipaclient.IPAClient()
- radius_profiles = ipa_client.find_radius_profiles(uids, sattrs=attrs)
+ radius_profiles = ipa_client.find_radius_profiles(uids, user_profile, sattrs=attrs)
counter = radius_profiles[0]
radius_profiles = radius_profiles[1:]