nss-pam-ldapd branch master updated. 0.9.11-13-g6d5a2eb
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.9.11-13-g6d5a2eb
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org, nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.11-13-g6d5a2eb
- Date: Wed, 26 May 2021 23:03:33 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via 6d5a2eb0ed9f9090c354852c520c3504b365cf7d (commit)
from 5226a6f56bdf64502bc86d8892d9d59ed5c6bc5a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/nss-pam-ldapd/commit/?id=6d5a2eb0ed9f9090c354852c520c3504b365cf7d
commit 6d5a2eb0ed9f9090c354852c520c3504b365cf7d
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Tue May 25 22:19:40 2021 +0200
Retry connecting to the first URI after idle_timelimit
This ensures that a connection to the first URI listed in the config
file will be re-established once the connection is closed cleanly after
the idle time.
This ensures that the listed URIs are handled more in a primary/fallback
manner if an idle time is configured.
Closes https://github.com/arthurdejong/nss-pam-ldapd/issues/46
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index 2dccc65..cdb5f6c 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -1062,6 +1062,8 @@ void myldap_session_check(MYLDAP_SESSION *session)
{
log_log(LOG_DEBUG, "myldap_session_check(): idle_timelimit reached");
do_close(session);
+ /* try to use the first URI from the list again */
+ session->current_uri = 0;
}
}
}
-----------------------------------------------------------------------
Summary of changes:
nslcd/myldap.c | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
nss-pam-ldapd
- nss-pam-ldapd branch master updated. 0.9.11-13-g6d5a2eb,
Commits of the nss-pam-ldapd project