mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 00:14:25 -05:00
Quick struct berval DN support for defer alias API.
Underlying code needs work.
This commit is contained in:
parent
3a8f99a24d
commit
b144879650
5 changed files with 6 additions and 6 deletions
|
|
@ -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 ));
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 ));
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue