summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/baseuser.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-30 06:37:16 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-30 16:32:20 +0200
commitae5f11b4de1d5e353a2e1b8345e316949f4b75ed (patch)
tree33511a859f80bc8119e853135fc07076f451630b /ipaserver/plugins/baseuser.py
parent16f33ddb51523fe9a4c68e91519099991ece10a5 (diff)
downloadfreeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.tar.gz
freeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.tar.xz
freeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.zip
server: define missing virtual attributes
Move virtual attributes defined in output params of methods into params of the related object. This fixes the virtual attributes being ommited in CLI output. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/plugins/baseuser.py')
-rw-r--r--ipaserver/plugins/baseuser.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipaserver/plugins/baseuser.py b/ipaserver/plugins/baseuser.py
index 7bb2e8a63..8087418d1 100644
--- a/ipaserver/plugins/baseuser.py
+++ b/ipaserver/plugins/baseuser.py
@@ -59,9 +59,6 @@ baseuser_output_params = (
Flag('has_keytab',
label=_('Kerberos keys available'),
),
- Str('sshpubkeyfp*',
- label=_('SSH public key fingerprint'),
- ),
)
status_baseuser_output_params = (
@@ -353,6 +350,10 @@ class baseuser(LDAPObject):
normalizer=normalize_sshpubkey,
flags=['no_search'],
),
+ Str('sshpubkeyfp*',
+ label=_('SSH public key fingerprint'),
+ flags={'virtual_attribute', 'no_create', 'no_update', 'no_search'},
+ ),
StrEnum('ipauserauthtype*',
cli_name='user_auth_type',
label=_('User authentication types'),