Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 887988 - [RFE] Expose the krbPrincipalExpiration attribute for editing in the IPA CLI / WEBUI
[RFE] Expose the krbPrincipalExpiration attribute for editing in the IPA CLI ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa (Show other bugs)
7.0
All Linux
medium Severity medium
: rc
: ---
Assigned To: Martin Kosek
Namita Soman
: FutureFeature
: 888240 (view as bug list)
Depends On:
Blocks: 1113520 1094433
  Show dependency treegraph
 
Reported: 2012-12-17 13:41 EST by Sigbjorn Lie
Modified: 2015-06-19 07:14 EDT (History)
10 users (show)

See Also:
Fixed In Version: ipa-4.0.3-1.el7
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1094433 (view as bug list)
Environment:
Last Closed: 2015-03-05 05:08:43 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0442 normal SHIPPED_LIVE Moderate: ipa security, bug fix, and enhancement update 2015-03-05 09:50:39 EST

  None (edit)
Description Sigbjorn Lie 2012-12-17 13:41:34 EST
Description of problem:
RFE: Expose the krbPrincipalExpiration attribute for editing in the IPA CLI / WEBUI to allow a user account to expire at a certain date.
Comment 3 Martin Kosek 2012-12-18 04:28:21 EST
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3306
Comment 4 Martin Kosek 2012-12-18 10:01:15 EST
*** Bug 888240 has been marked as a duplicate of this bug. ***
Comment 6 Martin Kosek 2013-10-07 09:35:10 EDT
~~ Current DEV status ~~

This RFEc consists of 2 parts:

https://fedorahosted.org/freeipa/ticket/3305: KrbPrincipalExpiration should be checked in pre-bind op
https://fedorahosted.org/freeipa/ticket/3306: [RFE] Expose the krbPrincipalExpiration attribute for editing in the IPA CLI / WEBUI

We have patch for the first part, it is being reviewed for FreeIPA 3.4. Second ticket should be also pretty easily solvable, mostly standard CLI/UI wiring.
Comment 8 Sigbjorn Lie 2013-12-20 02:34:28 EST
Any update with regards to this request?
Comment 9 Martin Kosek 2014-01-02 07:24:00 EST
Hello Signbjorn, this RFE is being solved upstream, in currently developed FreeIPA version 3.4 which is planned to be released in Q1 2014. The RFE is preliminary planned for RHEL-7.1.

If backport to earlier RHEL version is requested, please contact the Customer Service.
Comment 12 Deepak Das 2014-01-24 03:24:37 EST
Hi Martin,

Please check response in comment #11 for the requested information.
Comment 13 Martin Kosek 2014-01-30 08:55:15 EST
Deepak, as the development team focused on development and testing of the upcoming RHEL-7.0 release, the development of the upstream feature is not complete yet. It is in development, but not finished.

I am confident it will be part of RHEL-7.1 release. As for RHEL-6.6, we need to check with QE first so that they can evaluate, if they will be able to test it.
Comment 15 Martin Kosek 2014-05-12 02:29:11 EDT
Fixed upstream in master branch:

LDAP bind fix:
5d78cdf80951748f5f954a69c41a2a2cb1b84812 ipa-pwd-extop: Deny LDAP binds for accounts with expired principals
004071a24626195994265b1bcc3ac616bb09d795 ipatests: Add test for denying expired principals

CLI/UI enhancement:
edb5a0c5344de88cc41f6f73098da88d754cf076 ipalib: Expose krbPrincipalExpiration in CLI
4568a52953bc8e0193d586ebc3d8bdbd3e3e0fa0 ipatests: Fix formatting errors in test_user_plugin.py
473a9fd23800b46b4608465ae47da523e8a2861f ipatests: Add coverage for setting krbPrincipalExpiration
Comment 16 Petr Vobornik 2014-06-16 09:50:10 EDT
Web UI enhancement:
4de9c5fc51c1e9a07a23b430ba531eb096960732 webui: expose krbprincipalexpiration
Comment 18 Namita Soman 2015-01-26 17:03:33 EST
Verified using ipa-server-4.1.0-16.el7.x86_64

 
# ipa user-add --first=two --last=two two --password
Password: 
Enter Password again to verify: 
----------------
Added user "two"
----------------
  User login: two
  First name: two
  Last name: two
  Full name: two two
  Display name: two two
  Initials: tt
  Home directory: /home/two
  GECOS: two two
  Login shell: /bin/sh
  Kerberos principal: two@TESTRELM.TEST
  Email address: two@testrelm.test
  UID: 547200003
  GID: 547200003
  Password: True
  Member of groups: ipausers
  Kerberos keys available: True

# kinit two
Password for two@TESTRELM.TEST: 
Password expired.  You must change it now.
Enter new password: 
Enter it again: 

# ipa user-mod two --principal-expiration="2015-01-27 00:00:00Z"
-------------------
Modified user "two"
-------------------
  User login: two
  First name: two
  Last name: two
  Home directory: /home/two
  Login shell: /bin/sh
  Kerberos principal expiration: 20150127000000Z
  Email address: two@testrelm.test
  UID: 547200003
  GID: 547200003
  Account disabled: False
  Password: True
  Member of groups: ipausers
  Kerberos keys available: True


# date
Mon Jan 26 16:55:01 EST 2015


# date +%D -s 2015-01-28
01/28/15
# date
Wed Jan 28 00:00:05 EST 2015

# kinit two
kinit: Client's entry in database has expired while getting initial credentials

Verified the same from UI also.
Comment 20 errata-xmlrpc 2015-03-05 05:08:43 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0442.html
Comment 21 Varun Mylaraiah 2015-06-09 03:37:15 EDT
After user account has expired at a certain date, Error message that appears in CLI is   "kinit: Client's entry in database has expired while getting initial credentials"
But, the Error message in UI is:  "The password or username you entered is incorrect". Shouldn't both CLI and UI have the same error message?
Comment 22 Petr Vobornik 2015-06-19 07:14:22 EDT
ipa/session/login_password doesn't recognize the "kinit: Client's entry in database has expired while getting initial credentials" erorr and think that it's general invalid password error. This is then send to Web UI which displays invalid message.

ipa/session/login_password should be fixed to recognize this error and then send html header in response with appropriate error

Note You need to log in before you can comment on or make changes to this bug.