From d239b492ad0382d7061690219275f175c05e1830 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 4 Dec 2009 11:04:34 +0100 Subject: Try to renew Kerberos credentials When using GSSAPI we need a valid service ticket to talk to the LDAP server. If the ticket is expired the LDAP client returns with 'Can't contact LDAP server'. Currently we set the backend offline if this error occurs although the server is still available. This patch checks if the TGT is expired and tries to renew the credentials before going offline. --- server/providers/ldap/ldap_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'server/providers/ldap/ldap_common.h') diff --git a/server/providers/ldap/ldap_common.h b/server/providers/ldap/ldap_common.h index b1985455c..ff1ffb725 100644 --- a/server/providers/ldap/ldap_common.h +++ b/server/providers/ldap/ldap_common.h @@ -91,6 +91,7 @@ int ldap_id_cleanup_set_timer(struct sdap_id_ctx *ctx, struct timeval tv); bool sdap_connected(struct sdap_id_ctx *ctx); void sdap_mark_offline(struct sdap_id_ctx *ctx); +bool sdap_check_gssapi_reconnect(struct sdap_id_ctx *ctx); struct tevent_req *users_get_send(TALLOC_CTX *memctx, struct tevent_context *ev, -- cgit