Lines Matching defs:cfb

112 static int config_add_internal( CfBackInfo *cfb, Entry *e, ConfigArgs *ca,
115 static int config_check_schema( Operation *op, CfBackInfo *cfb );
4406 CfBackInfo *cfb;
4421 sc->cfb->cb_got_ldif = 1;
4443 sc->cfb->cb_root, sc->ca, &rdn, &CFOC_DATABASE,
4476 sc->config = config_build_entry( op, rs, sc->cfb->cb_root,
4484 rs->sr_err = config_add_internal( sc->cfb, rs->sr_entry, sc->ca, NULL, NULL, NULL );
4496 CfBackInfo *cfb = be->be_private;
4519 cfb->cb_db.bd_info = backend_info( "ldif" );
4520 if ( !cfb->cb_db.bd_info )
4523 if ( backend_db_init( "ldif", &cfb->cb_db, -1, NULL ) == NULL )
4526 cfb->cb_db.be_suffix = be->be_suffix;
4527 cfb->cb_db.be_nsuffix = be->be_nsuffix;
4532 cfb->cb_db.be_rootdn = be->be_suffix[0];
4533 cfb->cb_db.be_rootndn = be->be_nsuffix[0];
4537 c.be = &cfb->cb_db;
4555 if ( backend_startup_one( &cfb->cb_db, &c.reply ))
4586 sc.cfb = cfb;
4594 op->o_bd = &cfb->cb_db;
4637 cfb->cb_use_ldif = 1;
4675 CfBackInfo *cfb;
4684 cfb = be->be_private;
4720 cfb->cb_got_ldif = 1;
4721 cfb->cb_use_ldif = 1;
4727 if ( cfb->cb_got_ldif ) {
4741 ber_str2bv( cfname, 0, 1, &cfb->cb_config->c_file );
5028 CfBackInfo *cfb = (CfBackInfo *)op->o_bd->be_private;
5033 op->o_bd = &cfb->cb_db;
5483 config_add_internal( CfBackInfo *cfb, Entry *e, ConfigArgs *ca, SlapReply *rs,
5500 ce = config_find_base( cfb->cb_root, &e->e_nname, &last );
5615 cfn = cfb->cb_config;
5778 cfb->cb_root = ce;
5911 CfBackInfo *cfb;
5930 cfb = (CfBackInfo *)op->o_bd->be_private;
5963 rs->sr_err = config_add_internal( cfb, op->ora_e, &ca, rs, &renumber, op );
5973 rs->sr_err = config_rename_add( op, rs, ce, ca.valx, 0, 0, cfb->cb_use_ldif );
5981 if ( cfb->cb_use_ldif ) {
5986 op->o_bd = &cfb->cb_db;
6391 CfBackInfo *cfb;
6400 cfb = (CfBackInfo *)op->o_bd->be_private;
6402 ce = config_find_base( cfb->cb_root, &op->o_req_ndn, &last );
6459 } else if ( cfb->cb_use_ldif ) {
6464 op->o_bd = &cfb->cb_db;
6491 CfBackInfo *cfb;
6496 cfb = (CfBackInfo *)op->o_bd->be_private;
6498 ce = config_find_base( cfb->cb_root, &op->o_req_ndn, &last );
6627 cfb->cb_use_ldif );
6675 cfb->cb_use_ldif );
6678 ixold - ixnew, cfb->cb_use_ldif );
6694 CfBackInfo *cfb;
6698 cfb = (CfBackInfo *)op->o_bd->be_private;
6700 ce = config_find_base( cfb->cb_root, &op->o_req_ndn, &last );
6785 if ( cfb->cb_use_ldif ) {
6790 op->o_bd = &cfb->cb_db;
6818 count+ixold, 0, cfb->cb_use_ldif );
6840 CfBackInfo *cfb;
6844 cfb = (CfBackInfo *)op->o_bd->be_private;
6846 ce = config_find_base( cfb->cb_root, &op->o_req_ndn, &last );
6894 CfBackInfo *cfb = be->be_private;
6895 BackendInfo *bi = cfb->cb_db.bd_info;
6898 op->o_bd = &cfb->cb_db;
6918 CfBackInfo *cfb;
6922 cfb = (CfBackInfo *)op->o_bd->be_private;
6924 ce = config_find_base( cfb->cb_root, ndn, &last );
7213 config_check_schema(Operation *op, CfBackInfo *cfb)
7221 if ( !cfb->cb_root )
7225 ce = config_find_base( cfb->cb_root, &schema_dn, &last );
7296 e = config_build_entry( op, &rs, cfb->cb_root, &c, &schema_rdn,
7302 ce->ce_private = cfb->cb_config;
7318 CfBackInfo *cfb = be->be_private;
7356 op->o_bd = &cfb->cb_db;
7360 if ( !cfb->cb_use_ldif ) {
7365 if ( cfb->cb_got_ldif ) {
7366 return config_check_schema( op, cfb );
7371 c.ca_private = cfb->cb_config;
7378 cfb->cb_root = ce;
7402 ce->ce_private = cfb->cb_config;
7409 if ( cfb->cb_config->c_kids ) {
7412 c.ca_private = cfb->cb_config->c_kids;
7548 if ( unsupp && cfb->cb_use_ldif ) {
7589 CfBackInfo *cfb = be->be_private;
7591 cfb_free_entries( cfb->cb_root );
7592 cfb->cb_root = NULL;
7594 if ( cfb->cb_db.bd_info ) {
7595 backend_shutdown( &cfb->cb_db );
7609 CfBackInfo *cfb = be->be_private;
7611 cfb_free_cffile( cfb->cb_config );
7617 if ( cfb->cb_db.bd_info ) {
7618 cfb->cb_db.be_suffix = NULL;
7619 cfb->cb_db.be_nsuffix = NULL;
7620 BER_BVZERO( &cfb->cb_db.be_rootdn );
7621 BER_BVZERO( &cfb->cb_db.be_rootndn );
7623 backend_destroy_one( &cfb->cb_db, 0 );
7635 CfBackInfo *cfb;
7637 cfb = &cfBackInfo;
7638 cfb->cb_config = ch_calloc( 1, sizeof(ConfigFile));
7639 cfn = cfb->cb_config;
7640 be->be_private = cfb;
7668 CfBackInfo *cfb = be->be_private;
7669 BackendInfo *bi = cfb->cb_db.bd_info;
7672 return bi->bi_tool_entry_open( &cfb->cb_db, mode );
7681 CfBackInfo *cfb = be->be_private;
7682 BackendInfo *bi = cfb->cb_db.bd_info;
7685 return bi->bi_tool_entry_close( &cfb->cb_db );
7693 CfBackInfo *cfb = be->be_private;
7694 BackendInfo *bi = cfb->cb_db.bd_info;
7697 return bi->bi_tool_entry_first( &cfb->cb_db );
7700 return bi->bi_tool_entry_first_x( &cfb->cb_db,
7713 CfBackInfo *cfb = be->be_private;
7714 BackendInfo *bi = cfb->cb_db.bd_info;
7717 return bi->bi_tool_entry_first_x( &cfb->cb_db, base, scope, f );
7725 CfBackInfo *cfb = be->be_private;
7726 BackendInfo *bi = cfb->cb_db.bd_info;
7729 return bi->bi_tool_entry_next( &cfb->cb_db );
7737 CfBackInfo *cfb = be->be_private;
7738 BackendInfo *bi = cfb->cb_db.bd_info;
7741 return bi->bi_tool_dn2id_get( &cfb->cb_db, dn );
7749 CfBackInfo *cfb = be->be_private;
7750 BackendInfo *bi = cfb->cb_db.bd_info;
7753 return bi->bi_tool_entry_get( &cfb->cb_db, id );
7763 CfBackInfo *cfb = be->be_private;
7764 BackendInfo *bi = cfb->cb_db.bd_info;
7795 ce = config_build_entry( NULL, NULL, cfb->cb_root, &ca, &rdn,
7800 op->o_bd = &cfb->cb_db;
7813 bi->bi_tool_entry_put( &cfb->cb_db, ce, text ) != NOID ) {
7870 ce = config_build_entry( NULL, NULL, cfb->cb_root, &ca, &rdn, &CFOC_DATABASE,
7876 op->o_bd = &cfb->cb_db;
7889 bi->bi_tool_entry_put( &cfb->cb_db, ce, text ) != NOID ) {
7902 config_add_internal( cfb, e, &ca, NULL, NULL, NULL ) == 0 )
7903 return bi->bi_tool_entry_put( &cfb->cb_db, e, text );
7913 CfBackInfo *cfb = be->be_private;
7914 BackendInfo *bi = cfb->cb_db.bd_info;
7917 ce = config_find_base( cfb->cb_root, &e->e_nname, &last );
7920 return bi->bi_tool_entry_modify( &cfb->cb_db, e, text );
7928 CfBackInfo *cfb = be->be_private;
7929 BackendInfo *bi = cfb->cb_db.bd_info;
7932 ce = config_find_base( cfb->cb_root, ndn, &last );
7935 return bi->bi_tool_entry_delete( &cfb->cb_db, ndn, text );