]> git.sur5r.net Git - openldap/commitdiff
Add cn=monitor, cn=config, cn=schema to namingContexts.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 3 Jun 1999 19:58:05 +0000 (19:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 3 Jun 1999 19:58:05 +0000 (19:58 +0000)
servers/slapd/root_dse.c

index c2aa8f9caaf3f149dc120d95ba87be9fda119d0c..8264c52cd650bce21dc2009a59f37a86ed357865 100644 (file)
@@ -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