From ef3b182380156c1f85b00982afd6f799e1475047 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 3 Jun 1999 19:58:05 +0000 Subject: [PATCH] Add cn=monitor, cn=config, cn=schema to namingContexts. --- servers/slapd/root_dse.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.39.5