summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorThierry Bordaz <tbordaz@redhat.com>2015-07-01 14:46:22 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-02 12:01:07 +0200
commitb5cb95431bffd39475fa82a453ef057890425529 (patch)
treec7bee18e7037e32340a85a0364876a807f81d93c /ipalib
parent6f916b0ac96726eb0219a67f8a06c7df7e59cc86 (diff)
downloadfreeipa-b5cb95431bffd39475fa82a453ef057890425529.tar.gz
freeipa-b5cb95431bffd39475fa82a453ef057890425529.tar.xz
freeipa-b5cb95431bffd39475fa82a453ef057890425529.zip
Display the wrong attribute name when mandatory attribute is missing
When activating a stageuser, if 'sn' or 'cn' or 'uid' is missing it displays an error with 'cn' Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/stageuser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/stageuser.py b/ipalib/plugins/stageuser.py
index 01c01cea3..35e636ded 100644
--- a/ipalib/plugins/stageuser.py
+++ b/ipalib/plugins/stageuser.py
@@ -512,7 +512,7 @@ class stageuser_activate(LDAPQuery):
if attr not in entry:
raise errors.ValidationError(
name=self.obj.primary_key.cli_name,
- error=_('Entry has no \'cn\''),
+ error=_('Entry has no \'%(attribute)s\'') % dict(attribute=attr),
)
def _build_new_entry(self, ldap, dn, entry_from, entry_to):