From aee598dba720783f20988d09c8804d199fcf807d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Tue, 23 Oct 2001 13:42:37 +0000 Subject: [PATCH] Remove bogus refusal to index ;binary attributes. Notice that I left in a check. This way you have to say: index userCertificate eq If we remove it, we could say: index userCertificate;binary eq I have not tried the latter. --- servers/slapd/back-bdb/index.c | 8 -------- servers/slapd/back-ldbm/index.c | 8 -------- 2 files changed, 16 deletions(-) diff --git a/servers/slapd/back-bdb/index.c b/servers/slapd/back-bdb/index.c index 71e902e764..aea035d431 100644 --- a/servers/slapd/back-bdb/index.c +++ b/servers/slapd/back-bdb/index.c @@ -24,9 +24,6 @@ static slap_mask_t index_mask( AttributeType *at; slap_mask_t mask = 0; - /* we do not support indexing of binary attributes */ - if( slap_ad_is_binary( desc ) ) return 0; - bdb_attr_mask( be->be_private, desc->ad_cname.bv_val, &mask ); if( mask ) { @@ -340,11 +337,6 @@ int bdb_index_values( char *dbname = NULL; slap_mask_t mask; - if( slap_ad_is_binary( desc ) ) { - /* binary attributes have no index capabilities */ - return LDAP_SUCCESS; - } - rc = index_at_values( be, txn, desc->ad_type, &desc->ad_lang, vals, id, op, diff --git a/servers/slapd/back-ldbm/index.c b/servers/slapd/back-ldbm/index.c index baa197b3a3..1ab7d47bfb 100644 --- a/servers/slapd/back-ldbm/index.c +++ b/servers/slapd/back-ldbm/index.c @@ -24,9 +24,6 @@ static slap_mask_t index_mask( AttributeType *at; slap_mask_t mask = 0; - /* we do not support indexing of binary attributes */ - if( slap_ad_is_binary( desc ) ) return 0; - attr_mask( be->be_private, desc->ad_cname.bv_val, &mask ); if( mask ) { @@ -301,11 +298,6 @@ int index_values( char *dbname = NULL; slap_mask_t mask; - if( slap_ad_is_binary( desc ) ) { - /* binary attributes have no index capabilities */ - return LDAP_SUCCESS; - } - (void) index_at_values( be, desc->ad_type, &desc->ad_lang, vals, id, op, -- 2.39.5