[Freeipa-devel] [PATCH] Change the behaviour of addattr/setattr parameters
Pavel Zůna
pzuna at redhat.com
Mon Aug 9 20:05:34 UTC 2010
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.
Pavel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pzuna-freeipa-0007-setaddattr.patch
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100809/e265c951/attachment.ksh>
More information about the Freeipa-devel
mailing list