summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-01-09 11:26:44 +0100
committerAlexander Bokovoy <abokovoy@redhat.com>2014-05-05 19:01:04 +0300
commitedb5a0c5344de88cc41f6f73098da88d754cf076 (patch)
treea903420486e2fb27ffbc944d17190c4f96db8d27 /ipalib
parentecaf87c0070d8ea7164b4fb4610c68e1388f520e (diff)
downloadfreeipa-edb5a0c5344de88cc41f6f73098da88d754cf076.tar.gz
freeipa-edb5a0c5344de88cc41f6f73098da88d754cf076.tar.xz
freeipa-edb5a0c5344de88cc41f6f73098da88d754cf076.zip
ipalib: Expose krbPrincipalExpiration in CLI
Adds a krbPrincipalExpiration attribute to the user class in user.py ipalib plugin as a DateTime parameter. Part of: https://fedorahosted.org/freeipa/ticket/3306 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/user.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py
index 166955933..d9c7c6c85 100644
--- a/ipalib/plugins/user.py
+++ b/ipalib/plugins/user.py
@@ -24,7 +24,7 @@ import posixpath
import os
from ipalib import api, errors
-from ipalib import Flag, Int, Password, Str, Bool, StrEnum
+from ipalib import Flag, Int, Password, Str, Bool, StrEnum, DateTime
from ipalib.plugins.baseldap import *
from ipalib.plugins import baseldap
from ipalib.request import context
@@ -216,7 +216,8 @@ class user(LDAPObject):
'uidnumber', 'gidnumber', 'mail', 'ou',
'telephonenumber', 'title', 'memberof', 'nsaccountlock',
'memberofindirect', 'ipauserauthtype', 'userclass',
- 'ipatokenradiusconfiglink', 'ipatokenradiususername'
+ 'ipatokenradiusconfiglink', 'ipatokenradiususername',
+ 'krbprincipalexpiration'
]
search_display_attributes = [
'uid', 'givenname', 'sn', 'homedirectory', 'loginshell',
@@ -291,6 +292,10 @@ class user(LDAPObject):
flags=['no_update'],
normalizer=lambda value: normalize_principal(value),
),
+ DateTime('krbprincipalexpiration?',
+ cli_name='principal_expiration',
+ label=_('Kerberos principal expiration'),
+ ),
Str('mail*',
cli_name='email',
label=_('Email address'),