From 8bb6aa3fd81a3c195b92270ddf189296abae65eb Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 18 May 2010 12:18:13 +0200 Subject: Add offline callback to disconnect global SDAP handle --- src/providers/ldap/ldap_common.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/providers/ldap/ldap_common.c') diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c index 32057184f..1d62b7504 100644 --- a/src/providers/ldap/ldap_common.c +++ b/src/providers/ldap/ldap_common.c @@ -6,7 +6,7 @@ Authors: Simo Sorce - Copyright (C) 2008-2009 Red Hat + Copyright (C) 2008-2010 Red Hat This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -674,3 +674,11 @@ done: return ret; } +void sdap_gsh_disconnect_callback(void *pvt) +{ + struct sdap_id_ctx *ctx = talloc_get_type(pvt, struct sdap_id_ctx); + + if (ctx->gsh) { + ctx->gsh->connected = false; + } +} -- cgit