mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix previous commit
This commit is contained in:
parent
f0122ce3fc
commit
d30933af36
@ -118,11 +118,22 @@ ldap_back_search(
|
||||
|
||||
/* deal with <draft-zeilenga-ldap-t-f> filters */
|
||||
filter = op->ors_filterstr.bv_val;
|
||||
if ( li->flags & LDAP_BACK_F_SUPPORT_T_F ) {
|
||||
if ( bvmatch( &op->ors_filterstr, &bv_true ) ) {
|
||||
if ( bvmatch( &op->ors_filterstr, &bv_true ) ) {
|
||||
if ( li->flags & LDAP_BACK_F_SUPPORT_T_F ) {
|
||||
filter = "(&)";
|
||||
} else if ( bvmatch( &op->ors_filterstr, &bv_false ) ) {
|
||||
|
||||
} else {
|
||||
/* better than nothing... */
|
||||
filter = "(objectClass=*)";
|
||||
}
|
||||
|
||||
} else if ( bvmatch( &op->ors_filterstr, &bv_false ) ) {
|
||||
if ( li->flags & LDAP_BACK_F_SUPPORT_T_F ) {
|
||||
filter = "(|)";
|
||||
|
||||
} else {
|
||||
/* better than nothing... */
|
||||
filter = "(!(objectClass=*))";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user