From: Howard Chu Date: Fri, 26 Jan 2007 02:18:44 +0000 (+0000) Subject: Must use case-insensitive comparisons on attr types X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~127 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f58ea89c20a49224b4be2efc9a24df71a59b1d85;p=openldap Must use case-insensitive comparisons on attr types --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index ca2296fee6..dda4e18502 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -207,6 +207,8 @@ str2entry2( char *s, int checkvals ) goto fail; } +#define bvcasematch(bv1, bv2) ( ((bv1)->bv_len == (bv2)->bv_len) && (strncasecmp((bv1)->bv_val, (bv2)->bv_val, (bv1)->bv_len) == 0) ) + /* Make sure all attributes with multiple values are contiguous */ if ( checkvals ) { int j, k; @@ -215,7 +217,7 @@ str2entry2( char *s, int checkvals ) for (i=0; iad_cname ))) { + if ( !ad || ( iad_cname ))) { ad = NULL; rc = slap_bv2ad( type+i, &ad, &text );