diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-11-04 15:56:43 -0500 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-11-17 09:40:56 -0700 |
commit | 55c62ac79af235b75f969434aba775c4a8c30274 (patch) | |
tree | 381c3afe13d0045f932252e5fcf294ca2384b241 /ipalib/backend.py | |
parent | 680bf7c54863452263b9cd324ede444fd438436d (diff) | |
download | freeipa-55c62ac79af235b75f969434aba775c4a8c30274.tar.gz freeipa-55c62ac79af235b75f969434aba775c4a8c30274.tar.xz freeipa-55c62ac79af235b75f969434aba775c4a8c30274.zip |
Add support for setting/adding arbitrary attributes
This introduces 2 new params: --setattr and --addattr
Both take a name/value pair, ala:
ipa user-mod --setattr=postalcode=20601 jsmith
--setattr replaces or sets the current attribute to the value
--addattr adds the value to an attribute (or sets a new attribute)
OptionsParser allows multiple versions of this, so you can have multiple
setattr and addattr, either for the same attribute or for different
attributes.
ipa user-mod --addattr=postalcode=20601 --addattr=postalcode=30330 jsmith
Values are silent dropped if either of these on an existing param:
ipa user-mod --setattr=givenname=Jerry jsmith
Is a no-op.
Diffstat (limited to 'ipalib/backend.py')
0 files changed, 0 insertions, 0 deletions