From: Julio Sánchez Fernández Date: Tue, 20 Apr 1999 12:17:14 +0000 (+0000) Subject: Make it honor attrs and attrsonly X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~156 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9abff4993272b0d23f9f8968d1b15a9829c34ba7;p=openldap Make it honor attrs and attrsonly --- diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index 696691dd18..7d147b5a63 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -329,7 +329,7 @@ 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 root_dse_info LDAP_P((Connection *conn, Operation *op)); +extern void root_dse_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)); diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index 44b0369379..2c13df0ed7 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -17,7 +17,7 @@ #include "slap.h" void -root_dse_info( Connection *conn, Operation *op ) +root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly ) { Entry *e; char buf[BUFSIZ]; @@ -63,7 +63,7 @@ root_dse_info( Connection *conn, Operation *op ) attr_merge( e, "supportedLDAPVersion", 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 ); diff --git a/servers/slapd/search.c b/servers/slapd/search.c index f1dd5b7226..715376341b 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -130,7 +130,7 @@ do_search( #endif /* monitor or config or schema dn */ if ( strcmp( base, LDAP_ROOT_DSE ) == 0 && scope == LDAP_SCOPE_BASE ) { - root_dse_info( conn, op ); + root_dse_info( conn, op, attrs, attrsonly ); goto return_results; }