Diff for /servers/slapd/back-ldap/chain.c between versions 1.16 and 1.17

version 1.16, 2005/01/25 18:39:57 version 1.17, 2005/01/26 07:04:19
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.15 2005/01/25 16:14:19 ando Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/chain.c,v 1.16 2005/01/25 18:39:57 ando 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 314  ldap_chain_response( Operation *op, Slap Line 314  ldap_chain_response( Operation *op, Slap
                         char            textbuf[ SLAP_TEXT_BUFLEN ];                          char            textbuf[ SLAP_TEXT_BUFLEN ];
                         size_t          textlen = sizeof( textbuf );                          size_t          textlen = sizeof( textbuf );
   
                           assert( SLAP_DBFLAGS( op->o_bd ) & SLAP_DBFLAG_GLOBAL_OVERLAY );
   
                         /* global overlay: create entry */                          /* global overlay: create entry */
                         /* NOTE: this is a hack to use the chain overlay                          /* NOTE: this is a hack to use the chain overlay
                          * as global.  I expect to be able to remove this                           * as global.  I expect to be able to remove this
Line 504  ldap_chain_db_config( Line 506  ldap_chain_db_config(
         int             rc;          int             rc;
   
         be->be_private = on->on_bi.bi_private;          be->be_private = on->on_bi.bi_private;
         if ( strncasecmp( argv[ 0 ], "chain-", sizeof( "chain-" ) - 1 ) == 0 ) {          if ( strncasecmp( argv[ 0 ], "chain-", STRLENOF( "chain-" ) ) == 0 ) {
                 argv0 = argv[ 0 ];                  argv0 = argv[ 0 ];
                 argv[ 0 ] = &argv[ 0 ][ sizeof( "chain-" ) - 1 ];                  argv[ 0 ] = &argv[ 0 ][ STRLENOF( "chain-" ) ];
         }          }
         rc = lback->bi_db_config( be, fname, lineno, argc, argv );          rc = lback->bi_db_config( be, fname, lineno, argc, argv );
         if ( argv0 ) {          if ( argv0 ) {
Line 704  chain_init( void ) Line 706  chain_init( void )
         int     rc;          int     rc;
   
         rc = register_supported_control( LDAP_CONTROL_X_CHAINING_BEHAVIOR,          rc = register_supported_control( LDAP_CONTROL_X_CHAINING_BEHAVIOR,
                         SLAP_CTRL_FRONTEND|SLAP_CTRL_ACCESS|SLAP_CTRL_HIDE, NULL,                          /* SLAP_CTRL_FRONTEND| */ SLAP_CTRL_ACCESS|SLAP_CTRL_HIDE, NULL,
                         ldap_chain_parse_ctrl, &sc_chainingBehavior );                          ldap_chain_parse_ctrl, &sc_chainingBehavior );
         if ( rc != LDAP_SUCCESS ) {          if ( rc != LDAP_SUCCESS ) {
                 fprintf( stderr, "Failed to register chaining behavior control: %d\n", rc );                  fprintf( stderr, "Failed to register chaining behavior control: %d\n", rc );

Removed from v.1.16  
changed lines
  Added in v.1.17


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