Entry *target,
struct berval *ndn,
AttributeDescription *entry_at,
- BVarray *vals
+ BerVarray *vals
)
{
struct metainfo *li = ( struct metainfo * )be->be_private;
int rc = 1, i, j, count, is_oc, candidate;
Attribute *attr;
- BVarray abv, v;
+ BerVarray abv, v;
char **vs;
struct berval mapped;
LDAPMessage *result, *e;
LDAP *ld;
*vals = NULL;
- if ( target != NULL && target->e_nname.bv_len == ndn->bv_len
- && strcmp( target->e_ndn, ndn->bv_val ) == 0 ) {
+ if ( target != NULL && dn_match( &target->e_nname, ndn ) ) {
/* we already have a copy of the entry */
/* attribute and objectclass mapping has already been done */
attr = attr_find( target->e_attrs, entry_at );
for ( count = 0; attr->a_vals[ count ].bv_val != NULL; count++ )
;
- v = ( BVarray )ch_calloc( ( count + 1 ), sizeof( struct berval ) );
+ v = ( BerVarray )ch_calloc( ( count + 1 ), sizeof( struct berval ) );
if ( v == NULL ) {
return 1;
}
if ( vs != NULL ) {
for ( count = 0; vs[ count ] != NULL;
count++ ) { }
- v = ( BVarray )ch_calloc( ( count + 1 ),
+ v = ( BerVarray )ch_calloc( ( count + 1 ),
sizeof( struct berval ) );
if ( v == NULL ) {
ldap_value_free( vs );