From: Kurt Zeilenga Date: Sat, 24 Jul 1999 00:45:25 +0000 (+0000) Subject: Fix subschemasubentry operational attribute. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ee088518ce3633e5a2a6722f0ee44eb3d36a5a4;p=openldap Fix subschemasubentry operational attribute. --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 26f2af95ba..0ca25a0dc0 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -11,6 +11,7 @@ #include #include +#include "ldap_defaults.h" #include "slap.h" /* we need LBER internals */ @@ -501,16 +502,21 @@ send_search_entry( char *edn; int allattrs; - Debug( LDAP_DEBUG_TRACE, "=> send_search_entry (%s)\n", e->e_dn, 0, 0 ); + Debug( LDAP_DEBUG_TRACE, "=> send_search_entry: \"%s\"\n", e->e_dn, 0, 0 ); #if defined( SLAPD_SCHEMA_DN ) { /* this could be backend specific */ - struct berval val; + struct berval val; + struct berval *vals[2]; + + vals[0] = &val; + vals[1] = NULL; + val.bv_val = SLAPD_SCHEMA_DN; val.bv_len = strlen( val.bv_val ); + attr_merge( e, "subschemaSubentry", vals ); - ldap_memfree( val.bv_val ); } #endif