static int idmap_ldap_close_destructor(struct idmap_ldap_context *ctx) { smbldap_free_struct(&ctx->smbldap_state); DEBUG(5,("The connection to the LDAP server was closed\n")); /* maybe free the results here --metze */ return 0; }
static NTSTATUS idmap_ldap_alloc_close(void) { if (idmap_alloc_ldap) { smbldap_free_struct(&idmap_alloc_ldap->smbldap_state); DEBUG(5,("The connection to the LDAP server was closed\n")); /* maybe free the results here --metze */ TALLOC_FREE(idmap_alloc_ldap); } return NT_STATUS_OK; }