mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-01 14:15:49 +08:00
Make it honor attrs and attrsonly
This commit is contained in:
parent
a88bf50b31
commit
9abff49932
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user