Skip to content
Snippets Groups Projects
Commit 11211d0d authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

strip entryDN from search entries; frontend will reattach it :(

parent 27267f0f
Branches
Tags
No related merge requests found
......@@ -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] */ );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment