From: Kurt Zeilenga Date: Sun, 25 Jul 1999 20:30:15 +0000 (+0000) Subject: Allow "*" in attribute type list to select all attributes. X-Git-Tag: OPENLDAP_REL_ENG_1_2_5~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3a02a704e2dfb891998a4bb0410d5ed199f2129;p=thirdparty%2Fopenldap.git Allow "*" in attribute type list to select all attributes. No distinction is made between user and operational attributions. --- 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; }