From: Kurt Zeilenga Date: Fri, 28 Jan 2000 21:20:28 +0000 (+0000) Subject: Fix minor problems with proceeding commit which broken old schema compat X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3223 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad262b3ac66e72ccff2bbd61e2d5a01d035b9a64;p=openldap Fix minor problems with proceeding commit which broken old schema compat --- diff --git a/servers/slapd/back-ldbm/attr.c b/servers/slapd/back-ldbm/attr.c index 72f26d31dc..3414941c54 100644 --- a/servers/slapd/back-ldbm/attr.c +++ b/servers/slapd/back-ldbm/attr.c @@ -105,9 +105,7 @@ attr_index_config( for ( i = 0; attrs[i] != NULL; i++ ) { a = (AttrInfo *) ch_malloc( sizeof(AttrInfo) ); a->ai_type = ch_strdup( attrs[i] ); -#ifdef SLAPD_SCHEMA_COMPAT - a->ai_syntaxmask = attr_syntax( a->ai_type ); -#endif + if ( argc == 1 ) { a->ai_indexmask = ( SLAP_INDEX_PRESENCE | SLAP_INDEX_EQUALITY | diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 18faa0ea39..6c07a050a4 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -715,10 +715,17 @@ struct slap_backend_info { /* Auxilary Functions */ int (*bi_entry_release_rw) LDAP_P((BackendDB *bd, Entry *e, int rw)); +#ifdef SLAPD_SCHEMA_NOT_COMPAT int (*bi_acl_group) LDAP_P((Backend *bd, Entry *e, const char *bdn, const char *edn, const char *objectclassValue, AttributeType *group_at )); +#else + int (*bi_acl_group) LDAP_P((Backend *bd, + Entry *e, const char *bdn, const char *edn, + const char *objectclassValue, + const char *group_at )); +#endif int (*bi_connection_init) LDAP_P((BackendDB *bd, struct slap_conn *c));