Quick struct berval DN support for defer alias API.

Underlying code needs work.
This commit is contained in:
Kurt Zeilenga 2001-12-27 00:26:59 +00:00
parent 3a8f99a24d
commit b144879650
5 changed files with 6 additions and 6 deletions

View file

@ -15,7 +15,7 @@ LDAP_BEGIN_DECL
Entry *bdb_deref_internal_r LDAP_P((
BackendDB *be,
Entry *e,
const char *dn,
struct berval *dn,
int *err,
Entry **matched,
const char **text ));

View file

@ -73,7 +73,7 @@ bdb_search(
#ifdef BDB_ALIASES
/* get entry with reader lock */
if ( deref & LDAP_DEREF_FINDING ) {
e = deref_dn_r( be, nbase->bv_val, &err, &matched, &text );
e = deref_dn_r( be, nbase-, &err, &matched, &text );
} else
#endif

View file

@ -31,7 +31,7 @@ static int dnlist_subordinate(
Entry *deref_internal_r(
Backend* be,
Entry* alias,
const char* dn_in,
struct berval* dn_in,
int* err,
Entry** matched,
const char** text )
@ -51,7 +51,7 @@ Entry *deref_internal_r(
*text = NULL;
if( alias == NULL ) {
dn = ch_strdup( dn_in );
dn = ch_strdup( dn_in->bv_val );
entry = dn2entry_r( be, dn, &sup );
} else {

View file

@ -19,7 +19,7 @@ LDAP_BEGIN_DECL
Entry *deref_internal_r LDAP_P((
Backend *be,
Entry *e,
const char *dn,
struct berval *dn,
int *err,
Entry **matched,
const char **text ));

View file

@ -79,7 +79,7 @@ ldbm_back_search(
} else if ( deref & LDAP_DEREF_FINDING ) {
/* deref dn and get entry with reader lock */
e = deref_dn_r( be, nbase->bv_val, &err, &matched, &text );
e = deref_dn_r( be, nbase, &err, &matched, &text );
if( err == LDAP_NO_SUCH_OBJECT ) err = LDAP_REFERRAL;