Hi, Cross reference: https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1982219 I recently upgraded an Ubuntu system from 20.04 to 22.04 at which point autofs stopped working. `automount -d -m -v -f` would hang without printing the maps. After adding some debug statements I traced this to an unbalanced pthread_mutex_lock()/unlock() in sasl_do_kinit_ext_cc() of modules/cyrus-sasl.c. The patch attached this email resolved the problem for me. Thanks, James
diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c index ae046e0..c0b4743 100644 --- a/modules/cyrus-sasl.c +++ b/modules/cyrus-sasl.c @@ -721,6 +721,9 @@ sasl_do_kinit_ext_cc(unsigned logopt, struct lookup_context *ctxt) debug(logopt, "Kerberos authentication was successful!"); + status = pthread_mutex_unlock(&krb5cc_mutex); + if (status) + fatal(status); return 0; out_cleanup_def_princ: