[Freeipa-devel] [PATCH] 308 manage arbitrary attributes

Rob Crittenden rcritten at redhat.com
Wed Nov 4 21:04:02 UTC 2009


This adds 2 new parameters, --setattr and --addattr and lets you manage 
whatever attribute you want (within the given set of objectclasses).

Both take a name/value pair.

--setattr sets the attribute to the given value
--addattr adds the value to an attribute. Can be used to manage 
multi-valued attributes

For example:

ipa user-mod --addattr=postalcode=90210 jsmith

If the attribute to be modified is an another param then the value is 
silently dropped.

You can include multiples of these on a single command-line:

ipa user-mod --addattr=postalcode=20601 --addattr=postalcode=30330 jsmith

Setting an attribute to "" deletes it:

ipa user-mod --setattr=postalcode= jsmith

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20091104/43d71545/attachment.bin>


More information about the Freeipa-devel mailing list