mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Content rule logic fix
This commit is contained in:
parent
13f0acfb6a
commit
1b3007c22c
1 changed files with 7 additions and 3 deletions
|
|
@ -437,18 +437,22 @@ entry_schema_check(
|
|||
|
||||
#ifdef SLAP_EXTENDED_SCHEMA
|
||||
if( oc->soc_kind == LDAP_SCHEMA_AUXILIARY ) {
|
||||
int k=0;
|
||||
int k;
|
||||
|
||||
if( cr ) {
|
||||
k = -1;
|
||||
if( cr->scr_auxiliaries ) {
|
||||
for( ; cr->scr_auxiliaries[k]; k++ ) {
|
||||
if( cr->scr_auxiliaries[k] == oc ) {
|
||||
k=-1;
|
||||
k = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if ( global_disallows & SLAP_DISALLOW_AUX_WO_CR ) {
|
||||
k=-1;
|
||||
k = -1;
|
||||
} else {
|
||||
k = 0;
|
||||
}
|
||||
|
||||
if( k == -1 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue