From: Kurt Zeilenga Date: Thu, 3 Jun 1999 19:58:05 +0000 (+0000) Subject: Add cn=monitor, cn=config, cn=schema to namingContexts. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~413 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef3b182380156c1f85b00982afd6f799e1475047;p=openldap Add cn=monitor, cn=config, cn=schema to namingContexts. --- diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index c2aa8f9caa..8264c52cd6 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -44,9 +44,24 @@ root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly ) } } +#if defined( SLAPD_MONITOR_DN ) + strcpy( buf, SLAPD_MONITOR_DN ); + val.bv_val = buf; + val.bv_len = strlen( buf ); + attr_merge( e, "namingContexts", vals ); +#endif + +#if defined( SLAPD_CONFIG_DN ) + strcpy( buf, SLAPD_CONFIG_DN ); + val.bv_val = buf; + val.bv_len = strlen( buf ); + attr_merge( e, "namingContexts", vals ); +#endif + #if defined( SLAPD_SCHEMA_DN ) val.bv_val = ch_strdup( SLAPD_SCHEMA_DN ); val.bv_len = strlen( val.bv_val ); + attr_merge( e, "namingContexts", vals ); attr_merge( e, "subschemaSubentry", vals ); ldap_memfree( val.bv_val ); #endif