const char *text = NULL;
char textbuf[ 1024 ];
size_t textlen = sizeof( textbuf );
- struct berval bv[ 2 ] = { bsi->oc->oc->soc_cname, BER_BVNULL };
+ struct berval bv[ 2 ];
struct berval soc;
AttributeDescription *ad_soc
= slap_schema.si_ad_structuralObjectClass;
+ int rc;
- int rc = structural_class( bv, &soc, NULL,
+ bv[ 0 ] = bsi->oc->oc->soc_cname;
+ bv[ 0 ].bv_val = NULL;
+
+ rc = structural_class( bv, &soc, NULL,
&text, textbuf, textlen );
if ( rc != LDAP_SUCCESS ) {
entry_free( e );
memset( &bi, '\0', sizeof( bi ) );
bi.bi_type = "sql";
- bi.bi_init = backbacksql_initialize;
+ bi.bi_init = sql_back_initialize;
backend_add( &bi );
return 0;