diff options
author | Sumit Bose <sbose@redhat.com> | 2010-05-18 12:18:13 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-05-18 13:08:37 -0400 |
commit | 49942f408c33a91fd99deae7ca2b3005d6fb56fb (patch) | |
tree | cad21ce1bd2a66d856d785775796029597761507 /src/providers/ldap/ldap_common.c | |
parent | 00a7c950297d135e5f14fd3e366b5cc1dad1ddb6 (diff) | |
download | sssd-49942f408c33a91fd99deae7ca2b3005d6fb56fb.tar.gz sssd-49942f408c33a91fd99deae7ca2b3005d6fb56fb.tar.xz sssd-49942f408c33a91fd99deae7ca2b3005d6fb56fb.zip |
Add offline callback to disconnect global SDAP handle
Diffstat (limited to 'src/providers/ldap/ldap_common.c')
-rw-r--r-- | src/providers/ldap/ldap_common.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c index 697971d96..5beb2e66a 100644 --- a/src/providers/ldap/ldap_common.c +++ b/src/providers/ldap/ldap_common.c @@ -6,7 +6,7 @@ Authors: Simo Sorce <ssorce@redhat.com> - 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 @@ -675,3 +675,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; + } +} |