mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
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.
This commit is contained in:
parent
358950e8ad
commit
aee598dba7
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user