also handle RFC 4526 t-f filters in back-ldap (more about ITS#6814)

This commit is contained in:
Pierangelo Masarati 2011-01-29 14:16:02 +00:00
parent b996c17eb2
commit 4acb60f808

View File

@ -601,7 +601,9 @@ filter2bv_undef_x( Operation *op, Filter *f, int noundef, struct berval *fstr )
ber_bvundefined = BER_BVC( "(?=undefined)" ),
ber_bverror = BER_BVC( "(?=error)" ),
ber_bvunknown = BER_BVC( "(?=unknown)" ),
ber_bvnone = BER_BVC( "(?=none)" );
ber_bvnone = BER_BVC( "(?=none)" ),
ber_bvF = BER_BVC( "(|)" ),
ber_bvT = BER_BVC( "(&)" );
ber_len_t len;
ber_tag_t choice;
int undef, undef2;
@ -818,11 +820,11 @@ simple:
case SLAPD_FILTER_COMPUTED:
switch ( f->f_result ) {
case LDAP_COMPARE_FALSE:
tmp = ber_bvfalse;
tmp = ( noundef ? ber_bvF : ber_bvfalse );
break;
case LDAP_COMPARE_TRUE:
tmp = ber_bvtrue;
tmp = ( noundef ? ber_bvT : ber_bvtrue );
break;
case SLAPD_COMPARE_UNDEFINED: