Skip to content
Snippets Groups Projects
Commit ef3b1823 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add cn=monitor, cn=config, cn=schema to namingContexts.

parent a53823a6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment