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

Support attribute types list and only parameters on cn=config

and cn=monitor.
parent f3a02a70
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,10 @@
*/
void
config_info( Connection *conn, Operation *op )
config_info(
Connection *conn, Operation *op,
char **attrs, int attrsonly
)
{
Entry *e;
char buf[BUFSIZ];
......@@ -64,7 +67,7 @@ config_info( Connection *conn, Operation *op )
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 );
......
......@@ -31,7 +31,8 @@
#if defined( SLAPD_MONITOR_DN )
void
monitor_info( Connection *conn, Operation *op )
monitor_info( Connection *conn, Operation *op,
char **attrs, int attrsonly )
{
Entry *e;
char buf[BUFSIZ], buf2[22];
......@@ -185,7 +186,7 @@ monitor_info( Connection *conn, Operation *op )
attr_merge( e, "concurrency", vals );
#endif
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 );
......
......@@ -152,7 +152,9 @@ int lock_fclose LDAP_P(( FILE *fp, FILE *lfp ));
* monitor.c
*/
void monitor_info LDAP_P(( Connection *conn, Operation *op ));
void monitor_info LDAP_P((
Connection *conn, Operation *op,
char ** attrs, int attrsonly ));
/*
* operation.c
......@@ -278,7 +280,10 @@ extern void * slapd_daemon LDAP_P((void *port));
extern void slap_set_shutdown LDAP_P((int sig));
extern void slap_do_nothing LDAP_P((int sig));
extern void config_info LDAP_P((Connection *conn, Operation *op));
extern void config_info LDAP_P((
Connection *conn, Operation *op,
char ** attrs, int attrsonly ));
extern void do_abandon LDAP_P((Connection *conn, Operation *op));
extern void do_add LDAP_P((Connection *conn, Operation *op));
extern void do_bind LDAP_P((Connection *conn, Operation *op));
......
......@@ -110,19 +110,19 @@ do_search(
if ( scope == LDAP_SCOPE_BASE ) {
#if defined( SLAPD_MONITOR_DN )
if ( strcmp( base, SLAPD_MONITOR_DN ) == 0 ) {
monitor_info( conn, op );
monitor_info( conn, op, attrs, attrsonly );
goto return_results;
}
#endif
#if defined( SLAPD_CONFIG_DN )
if ( strcmp( base, SLAPD_CONFIG_DN ) == 0 ) {
config_info( conn, op );
config_info( conn, op, attrs, attrsonly );
goto return_results;
}
#endif
#if defined( SLAPD_SCHEMA_DN )
if ( strcmp( base, SLAPD_SCHEMA_DN ) == 0 ) {
schema_info( conn, op );
schema_info( conn, op, attrs, attrsonly );
goto return_results;
}
#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