Bug 670531

Summary: ipa-config: can not change more than one option at a time
Product: [Retired] freeIPA Reporter: Jenny Severance <jgalipea>
Component: ipa-admintoolsAssignee: Rob Crittenden <rcritten>
Status: CLOSED NOTABUG QA Contact: Chandrasekar Kannan <ckannan>
Severity: low Docs Contact:
Priority: low    
Version: 2.0CC: benl, dpal, jgalipea
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-18 18:16:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jenny Severance 2011-01-18 15:42:16 UTC
Description of problem:
the ipa-config option does not allow you to change more than one default option at a time ...

# ipa config-mod --searchtimelimit=2 searchrecordslimit=100 --maxusername=32
ipa: ERROR: command 'config_mod' takes no arguments

# ipa config-mod --searchtimelimit=2 searchrecordslimit=100
ipa: ERROR: command 'config_mod' takes no arguments

# ipa config-mod --searchtimelimit=2
  Max username length: 11
  Home directory base: CrB2n9xHhmiahl210YmV1botykMvFP9naVSyFXOOWdPkFgalnECmDvLI3zrF6N
  Default shell: //9p+qeY.lBEKVwvQ3zLMLiPo4udZ5S2dAfetgjE6JLn0k_AwR2
  Default users group: ipausers
  Default e-mail domain: wFwzLjPzk.com
  Search time limit: 2
  Search size limit: -1
  User search fields: uid,givenname,sn,ou,title,homephone
  Group search fields: cn,description
  Migration mode: FALSE
  Certificate Subject base: O=TESTRELM


It would be nice if you could change more than 1 at a time


Version-Release number of selected component (if applicable):

ipa-server-2.0-0.2011011806gitec3e7f1.fc14.i686
ipa-admintools-2.0-0.2011011806gitec3e7f1.fc14.i686

How reproducible:
always

Steps to Reproduce:
1. see description
2.
3.
  
Actual results:
error message stating only one arguement allowed

Expected results:
all defined options updated

Additional info:

Comment 1 Dmitri Pal 2011-01-18 15:56:29 UTC
https://fedorahosted.org/freeipa/ticket/800

Comment 2 Rob Crittenden 2011-01-18 16:06:40 UTC
you're missing the dashes for searchrecordslimit=100, can you re-test?

Comment 3 Jenny Severance 2011-01-18 16:24:11 UTC
ooppss that was it ... however the error message is incorrect ... is should state invalid paramater option instead of takes no arguments

ipa config-mod --searchtimelimit=2 searchrecordslimit=100
ipa: ERROR: command 'config_mod' takes no arguments

Comment 4 Rob Crittenden 2011-01-18 16:51:58 UTC
In *nix things being with a dash are options. Things without dashes are arguments even if they have an embedded = sign.

For example: 

$ ls --color=always
[ provides a colored list in cwd ]

versus

$ ls color=always
ls: cannot access color=always: No such file or directory