mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 04:29:35 -05:00
strip entryDN from search entries; frontend will reattach it :(
This commit is contained in:
parent
27267f0f78
commit
11211d0dae
2 changed files with 14 additions and 2 deletions
|
|
@ -545,7 +545,9 @@ ldap_build_entry(
|
|||
}
|
||||
|
||||
/* no subschemaSubentry */
|
||||
if ( attr->a_desc == slap_schema.si_ad_subschemaSubentry ) {
|
||||
if ( attr->a_desc == slap_schema.si_ad_subschemaSubentry
|
||||
|| attr->a_desc == slap_schema.si_ad_entryDN )
|
||||
{
|
||||
|
||||
/*
|
||||
* We eat target's subschemaSubentry because
|
||||
|
|
@ -553,6 +555,10 @@ ldap_build_entry(
|
|||
* to resolve to the appropriate backend;
|
||||
* later, the local subschemaSubentry is
|
||||
* added.
|
||||
*
|
||||
* We also eat entryDN because the frontend
|
||||
* will reattach it without checking if already
|
||||
* present...
|
||||
*/
|
||||
( void )ber_scanf( &ber, "x" /* [W] */ );
|
||||
|
||||
|
|
|
|||
|
|
@ -924,7 +924,9 @@ meta_send_entry(
|
|||
}
|
||||
|
||||
/* no subschemaSubentry */
|
||||
if ( attr->a_desc == slap_schema.si_ad_subschemaSubentry ) {
|
||||
if ( attr->a_desc == slap_schema.si_ad_subschemaSubentry
|
||||
|| attr->a_desc == slap_schema.si_ad_entryDN )
|
||||
{
|
||||
|
||||
/*
|
||||
* We eat target's subschemaSubentry because
|
||||
|
|
@ -932,6 +934,10 @@ meta_send_entry(
|
|||
* to resolve to the appropriate backend;
|
||||
* later, the local subschemaSubentry is
|
||||
* added.
|
||||
*
|
||||
* We also eat entryDN because the frontend
|
||||
* will reattach it without checking if already
|
||||
* present...
|
||||
*/
|
||||
( void )ber_scanf( &ber, "x" /* [W] */ );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue