#9951 Datetime format of expiration in IPA-EPN
Closed: fixed by frenaud. Opened by smirta.

Request for enhancement

In IPA-EPN, as an admin I want to be able to format the expiration template variable coming from FreeIPA LDAP attribute krbpasswordexpiration in generalized UTC timestamp format.

Issue

It is not possible to format expiration except some ugly use of python string split functions.

Steps to Reproduce

Try to format expiration in jinja template expire_msg.template.

Actual behavior

Very limited.

Expected behavior

Something like {{ expiration | dateformat("'%B %d, %Y'") }} should be possible.

Version/Release/Distribution

$ rpm -q ipa-client
ipa-client-4.12.2-22.el9_7.1.x86_64


(edit:initially added wrong PR link)
I have added a PR with a suggestion at hhttps://github.com/freeipa/freeipa/pull/8201

Metadata Update from @abbra:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6913
- Issue assigned to smirta

@abbra sorry, I have added a wrong link for the PR. The right one is https://github.com/freeipa/freeipa/pull/8201

Metadata Update from @abbra:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8201 (was: https://github.com/freeipa/freeipa/pull/6913)

master:

  • 1cde93e84e7dcf4dcd013426093c0bdf72c39bed feat(ipa-epn): Add date/time filter for expiration variable

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata