From f3a02a704e2dfb891998a4bb0410d5ed199f2129 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 25 Jul 1999 20:30:15 +0000 Subject: [PATCH] Allow "*" in attribute type list to select all attributes. No distinction is made between user and operational attributions. --- servers/slapd/result.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 15a28162f3..4871d23ced 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -190,6 +190,7 @@ send_search_entry( int i, rc, bytes, sd; struct acl *acl; char *edn; + int allattrs; Debug( LDAP_DEBUG_TRACE, "=> send_search_entry (%s)\n", e->e_dn, 0, 0 ); @@ -235,10 +236,12 @@ send_search_entry( goto error_return; } + allattrs = ( (attrs == NULL) || charray_inlist( attrs, "*" ) ); + for ( a = e->e_attrs; a != NULL; a = a->a_next ) { regmatch_t matches[MAXREMATCHES]; - if ( attrs != NULL && ! charray_inlist( attrs, a->a_type ) ) { + if ( !allattrs && !charray_inlist( attrs, a->a_type ) ) { continue; } -- 2.39.5