Bug 670531 - ipa-config: can not change more than one option at a time
Summary: ipa-config: can not change more than one option at a time
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-admintools
Version: 2.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-18 15:42 UTC by Jenny Severance
Modified: 2015-01-04 23:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-18 18:16:33 UTC


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.