Diff for /servers/slapd/back-ldap/chain.c between versions 1.12.2.3 and 1.12.2.4

version 1.12.2.3, 2005/01/28 17:29:49 version 1.12.2.4, 2005/02/02 17:32:44
Line 1 Line 1
 /* chain.c - chain LDAP operations */  /* chain.c - chain LDAP operations */
 /* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/chain.c,v 1.12.2.2 2005/01/24 21:28:52 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/chain.c,v 1.12.2.3 2005/01/28 17:29:49 kurt Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 2003-2005 The OpenLDAP Foundation.   * Copyright 2003-2005 The OpenLDAP Foundation.
Line 614  ldap_chain_db_destroy( Line 614  ldap_chain_db_destroy(
         return rc;          return rc;
 }  }
   
   static int
   ldap_chain_connection_destroy(
           BackendDB *be,
           Connection *conn
   )
   {
           slap_overinst *on = (slap_overinst *) be->bd_info;
           void *private = be->be_private;
           int rc;
   
           be->be_private = on->on_bi.bi_private;
           rc = lback->bi_connection_destroy( be, conn );
           on->on_bi.bi_private = be->be_private;
           be->be_private = private;
           return rc;
   }
   
 #ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR  #ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR
 static int  static int
 ldap_chain_parse_ctrl(  ldap_chain_parse_ctrl(
Line 766  chain_init( void ) Line 783  chain_init( void )
 #endif /* LDAP_CONTROL_X_CHAINING_BEHAVIOR */  #endif /* LDAP_CONTROL_X_CHAINING_BEHAVIOR */
         ldapchain.on_bi.bi_db_config = ldap_chain_db_config;          ldapchain.on_bi.bi_db_config = ldap_chain_db_config;
         ldapchain.on_bi.bi_db_destroy = ldap_chain_db_destroy;          ldapchain.on_bi.bi_db_destroy = ldap_chain_db_destroy;
           
         /* ... otherwise the underlying backend's function would be called,          /* ... otherwise the underlying backend's function would be called,
          * likely passing an invalid entry; on the contrary, the requested           * likely passing an invalid entry; on the contrary, the requested
          * operational attributes should have been returned while chasing           * operational attributes should have been returned while chasing
          * the referrals.  This all in all is a bit messy, because part           * the referrals.  This all in all is a bit messy, because part
          * of the operational attributes are generated by they backend;           * of the operational attributes are generated by the backend;
          * part by the frontend; back-ldap should receive all the available           * part by the frontend; back-ldap should receive all the available
          * ones from the remote server, but then, on it own, it strips those           * ones from the remote server, but then, on its own, it strips those
          * it assumes will be (re)generated by the frontend (e.g.           * it assumes will be (re)generated by the frontend (e.g.
          * subschemaSubentry.) */           * subschemaSubentry.) */
         ldapchain.on_bi.bi_operational = ldap_chain_operational;          ldapchain.on_bi.bi_operational = ldap_chain_operational;
                   
           ldapchain.on_bi.bi_connection_destroy = ldap_chain_connection_destroy;
   
         ldapchain.on_response = ldap_chain_response;          ldapchain.on_response = ldap_chain_response;
   
         return overlay_register( &ldapchain );          return overlay_register( &ldapchain );

Removed from v.1.12.2.3  
changed lines
  Added in v.1.12.2.4


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org