Skip to content
Snippets Groups Projects
Commit 9abff499 authored by Julio Sánchez Fernández's avatar Julio Sánchez Fernández
Browse files

Make it honor attrs and attrsonly
parent a88bf50b
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
......@@ -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 );
......
......@@ -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;
}
......
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