need to move #define here; on by default

This commit is contained in:
Pierangelo Masarati 2002-10-26 16:32:11 +00:00
parent 7b3f889ec1
commit f07cabad0f
2 changed files with 8 additions and 7 deletions

View File

@ -483,13 +483,6 @@ LDAP_SLAPD_F (int) get_vrFilter LDAP_P(( Connection *conn, BerElement *ber,
LDAP_SLAPD_F (void) vrFilter_free LDAP_P(( ValuesReturnFilter *f ));
LDAP_SLAPD_F (void) vrFilter2bv LDAP_P(( ValuesReturnFilter *f, struct berval *fstr ));
/*
* define to honor hasSubordinates operational attribute in search filters
* (in previous use there was a flaw with back-bdb and back-ldbm; now it
* is fixed).
*/
#undef SLAP_X_FILTER_HASSUBORDINATES
#ifdef SLAP_X_FILTER_HASSUBORDINATES
LDAP_SLAPD_F (int) filter_has_subordinates LDAP_P(( Filter *filter ));
#endif /* SLAP_X_FILTER_HASSUBORDINATES */

View File

@ -1206,6 +1206,14 @@ struct slap_backend_db {
#define be_group bd_info->bi_acl_group
#define be_attribute bd_info->bi_acl_attribute
#define be_operational bd_info->bi_operational
/*
* define to honor hasSubordinates operational attribute in search filters
* (in previous use there was a flaw with back-bdb and back-ldbm; now it
* is fixed).
*/
#define SLAP_X_FILTER_HASSUBORDINATES
#ifdef SLAP_X_FILTER_HASSUBORDINATES
#define be_has_subordinates bd_info->bi_has_subordinates
#endif /* SLAP_X_FILTER_HASSUBORDINATES */