mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 19:49:35 -05:00
fix ITS#2309
This commit is contained in:
parent
a667cd989b
commit
06b981429a
2 changed files with 7 additions and 3 deletions
|
|
@ -418,12 +418,16 @@ backsql_id2entry( backsql_srch_info *bsi, Entry *e, backsql_entryID *eid )
|
|||
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 );
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ backsql_LTX_init_module(
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue