freeipa/client/man
Rob Crittenden b842b825ab Make the schema cache TTL user-configurable
The API schema is not checked for changes until after a TTL
is expired. A one-hour TTL was hardcoded which makes development
tedious because the only way to force a schema update is to
remember to remove files between invocations.

This adds a new environment variable, schema_ttl, to configure
the TTL returned by the server to schema() calls. This can be
set low to ensure a frequent refresh during development.

If the client is in compat mode, that is if client is working
against a server that doesn't support the schema() command,
then use the client's schema_ttl instead so that the user still
has control.

Re-check validity before writing the cache. This saves us both
a disk write and the possibility of updating the expiration
with a ttl of 0. This can happen if the fingerprint is still
valid (not expired, no language change) the schema check is
skipped so we have no server-provided ttl.

https://pagure.io/freeipa/issue/8492

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-11-03 10:59:10 +01:00
..
default.conf.5 Make the schema cache TTL user-configurable 2021-11-03 10:59:10 +01:00
epn.conf.5 Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
ipa-certupdate.1 Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
ipa-client-automount.1 Fix the option to match in the ipa-client-automount usage and man-page 2021-05-18 15:02:59 +02:00
ipa-client-install.1 ipa-client-install: update sssd.conf if nsupdate requires -g 2021-06-28 11:41:07 +03:00
ipa-client-samba.1 man: fix ipa-client-samba.1 typos 2021-02-15 10:04:55 +02:00
ipa-epn.1 man: fix typos in ipa-epn.1 2021-05-18 14:59:10 +02:00
ipa-getkeytab.1 ipa-getkeytab: add option to discover servers using DNS SRV 2021-07-30 08:45:08 -04:00
ipa-join.1 Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
ipa-rmkeytab.1 Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
ipa.1 Change FreeIPA references to IPA and Identity Management 2021-01-21 13:51:45 +01:00
Makefile.am IPA-EPN: First version. 2020-06-09 08:43:45 +02:00