Make it honor attrs and attrsonly

This commit is contained in:
Julio Sánchez Fernández 1999-04-20 12:17:14 +00:00
parent a88bf50b31
commit 9abff49932
3 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -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 );

View File

@ -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;
}