summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-11-15 15:37:40 +0100
committerRob Crittenden <rcritten@redhat.com>2010-11-19 13:54:27 -0500
commit3682a1c385f93d574af2db3f498ecc003eeb2133 (patch)
treeaae3cae0a2bcdd42b32911d88be9fbbe64a231bc
parentd9dd838014b49932a569dc2e8f9d8942637d2590 (diff)
downloadfreeipa-3682a1c385f93d574af2db3f498ecc003eeb2133.tar.gz
freeipa-3682a1c385f93d574af2db3f498ecc003eeb2133.tar.xz
freeipa-3682a1c385f93d574af2db3f498ecc003eeb2133.zip
Improve the documentation of setattr/addattr
https://fedorahosted.org/freeipa/ticket/245
-rw-r--r--ipalib/plugins/baseldap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index 61fedd98a..315deb09d 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -283,12 +283,13 @@ class LDAPObject(Object):
_attr_options = (
Str('addattr*', validate_add_attribute,
cli_name='addattr',
- doc=_('Add an attribute/value pair. Format is attr=value'),
+ doc=_('Add an attribute/value pair. Format is attr=value. The attribute must be part of the schema.'),
exclude='webui',
),
Str('setattr*', validate_set_attribute,
cli_name='setattr',
- doc=_('Set an attribute to an name/value pair. Format is attr=value'),
+ doc=_("""Set an attribute to an name/value pair. Format is attr=value.
+For multivalued attributes, the command replaces the values already present."""),
exclude='webui',
),
)