From 21690c644bc503e4c8cc55df00b398ab81fd7444 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 28 Aug 2020 18:49:29 -0400 Subject: fix(panettone): Automatically reconnect to ldap Wrap all ldap access in a macro that automatically reconnects and retries operations that fail due to a connection error, to handle the case where the ldap server restarts while we still have an open connection. Fixes: #44 Change-Id: I4859cf509106e480f97fed17e7f08e0eea909352 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1871 Tested-by: BuildkiteCI Reviewed-by: eta --- web/panettone/src/panettone.lisp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/panettone/src/panettone.lisp') diff --git a/web/panettone/src/panettone.lisp b/web/panettone/src/panettone.lisp index d4746c7706fd..cef35722140c 100644 --- a/web/panettone/src/panettone.lisp +++ b/web/panettone/src/panettone.lisp @@ -571,6 +571,8 @@ (comment (setq hunchentoot:*catch-errors-p* nil) + ;; to setup an ssh tunnel to ldap+cheddar for development: + ;; ssh -NL 3899:localhost:389 -L 4238:localhost:4238 whitby.tvl.fyi (start-panettone :port 6161 :ldap-port 3899 :session-secret "session-secret") -- cgit 1.4.1