diff options
author | Adam Young <ayoung@redhat.com> | 2010-08-13 16:20:41 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-08-13 16:20:41 -0400 |
commit | 030b5dab93971495d8656f7886c29136e118a9e6 (patch) | |
tree | cb3bf3ca3fed61c777bedb713054954bbfb2abeb /LICENSE | |
parent | f15758dbea6be0894cdc2fcc19ec9d2428c797f1 (diff) | |
download | freeipa-030b5dab93971495d8656f7886c29136e118a9e6.tar.gz freeipa-030b5dab93971495d8656f7886c29136e118a9e6.tar.xz freeipa-030b5dab93971495d8656f7886c29136e118a9e6.zip |
Change the behaviour of addattr/setattr parameters.
setattr and addattr can now be used both to set all values of
ANY attribute. the last setattr always resets the attribute to
the specified value and all addattr append to it.
Examples:
user-mod testuser --setattr=title=msc
title: msc
user-mod testuser --setattr=title=msb
title: msb
user-mod testuser --addattr=title=msc
title: msb, msc
user-mod testuser --setattr=title=
title:
user-mod testuser --setattr=title=msc --addattr=msb
title: msc, msb
user-mod testuser --setattr=title=ing --addattr=bc
title: ing, bc
user-mod testuser --setattr=title=doc
title: doc
It's not very user friendly, but it's going to be used very very
rarely in special conditions in the CLI and we can use it to save
lots of JSON-RPC roundtrips in the webUI.
This version includes calling the validation of Params during the setting of the attrs.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions