You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
4 months ago
|
autofs-5.1.9 - fix always recreate credential cache
|
||
|
|
||
|
From: Ian Kent <raven@themaw.net>
|
||
|
|
||
|
When I aplied the original patch from Ian Collier for this I changed
|
||
|
the credential end time comparison to be against the time returned from
|
||
|
monotomic_time(). But this isn't the same as the calander time returned
|
||
|
from time() which Ian used in his original patch.
|
||
|
|
||
|
Signed-off-by: Ian Kent < raven@themaw.net>
|
||
|
---
|
||
|
CHANGELOG | 1 +
|
||
|
modules/cyrus-sasl.c | 2 +-
|
||
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
--- autofs-5.1.9.orig/CHANGELOG
|
||
|
+++ autofs-5.1.9/CHANGELOG
|
||
|
@@ -3,6 +3,7 @@
|
||
|
- fix ldap_parse_page_control() check.
|
||
|
- fix crash in make_options_string().
|
||
|
- Fix incompatible function pointer types in cyrus-sasl module.
|
||
|
+- fix always recreate credential cache.
|
||
|
|
||
|
02/11/2023 autofs-5.1.9
|
||
|
- fix kernel mount status notification.
|
||
|
--- autofs-5.1.9.orig/modules/cyrus-sasl.c
|
||
|
+++ autofs-5.1.9/modules/cyrus-sasl.c
|
||
|
@@ -676,7 +676,7 @@ sasl_do_kinit(unsigned logopt, struct lo
|
||
|
}
|
||
|
else {
|
||
|
krb5_creds match_creds, out_creds;
|
||
|
- time_t now = monotonic_time(NULL);
|
||
|
+ time_t now = time(NULL);
|
||
|
|
||
|
/* even if the cache is in use, we will clear it if it
|
||
|
* contains an expired credential for our principal,
|