From 927c089ba7799a0d006769bf3a09f769966b068b Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 13 Dec 2012 18:13:06 -0500 Subject: sssd_pam: Cleanup requests cache on sbus reconect The pam responder was not properly configured to recover from a backend disconnect. The connections that were in flight before the disconnection were never freed and new requests for the same user would just pile up on top of the now phantom requests. Fixes: https://fedorahosted.org/sssd/ticket/1655 --- src/responder/pam/pamsrv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/responder') diff --git a/src/responder/pam/pamsrv.c b/src/responder/pam/pamsrv.c index c608f581..f877c4f0 100644 --- a/src/responder/pam/pamsrv.c +++ b/src/responder/pam/pamsrv.c @@ -91,7 +91,10 @@ static void pam_dp_reconnect_init(struct sbus_connection *conn, int status, void DATA_PROVIDER_VERSION, "PAM"); /* all fine */ - if (ret == EOK) return; + if (ret == EOK) { + handle_requests_after_reconnect(be_conn->rctx); + return; + } } /* Handle failure */ -- cgit