]> git.sur5r.net Git - openldap/commitdiff
Support attribute types list and only parameters on cn=config
authorKurt Zeilenga <kurt@openldap.org>
Sun, 25 Jul 1999 20:32:12 +0000 (20:32 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 25 Jul 1999 20:32:12 +0000 (20:32 +0000)
and cn=monitor.

servers/slapd/configinfo.c
servers/slapd/monitor.c
servers/slapd/proto-slap.h
servers/slapd/search.c

index 9736b296c1e45c4bf81e3538d71aa50d0dc12d90..4becb0c090621529c13f264dda1b7a0c9f4c3b73 100644 (file)
  */
 
 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 );
index 88ea15b9ecf1fdaebee47a52b3aa0a3cd92f8c11..ed29f78fafd0f87b6a789cf3d7b1c8489c21f399 100644 (file)
@@ -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 );
index 52372983ae2a5597f8047b2a3f3fff656cb64b96..41d4ecd7e8faa189dfb5e3effeb4a981d86bbfd7 100644 (file)
@@ -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));
index 2779fe0bdd8f4aa0e64f672c810e0a7d80224a12..1a7ec0d52af21542ed642169915fdd9b4c562a6f 100644 (file)
@@ -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