*/
void
-config_info( Connection *conn, Operation *op )
+config_info(
+ Connection *conn, Operation *op,
+ char **attrs, int attrsonly
+ )
{
Entry *e;
char buf[BUFSIZ];
entry_rdwr_init(e);
e->e_attrs = NULL;
- e->e_dn = strdup( SLAPD_CONFIG_DN );
+ e->e_dn = ch_strdup( SLAPD_CONFIG_DN );
+ e->e_ndn = dn_normalize_case( ch_strdup( SLAPD_CONFIG_DN ));
for ( i = 0; i < nbackends; i++ ) {
strcpy( buf, backends[i].be_type );
attr_merge( e, "database", vals );
}
- send_search_entry( &backends[0], conn, op, e, NULL, 0 );
+ send_search_entry( &backends[0], conn, op, e, attrs, attrsonly );
send_ldap_search_result( conn, op, LDAP_SUCCESS, NULL, NULL, 1 );
entry_free( e );