mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 06:14:40 -05:00
Add Backend to system schema check routines
This commit is contained in:
parent
6c76b2c55d
commit
20dd3c1273
4 changed files with 13 additions and 2 deletions
|
|
@ -167,6 +167,10 @@ SOURCE=.\init.c
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\listener.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\log.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ entry_schema_check(
|
|||
|
||||
if( a->a_desc->ad_type->sat_check ) {
|
||||
int rc = (a->a_desc->ad_type->sat_check)(
|
||||
e, a, text, textbuf, textlen );
|
||||
be, e, a, text, textbuf, textlen );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
return rc;
|
||||
}
|
||||
|
|
@ -209,7 +209,7 @@ entry_schema_check(
|
|||
}
|
||||
|
||||
if ( oc->sco_check ) {
|
||||
int rc = (oc->sco_check)( e, oc,
|
||||
int rc = (oc->sco_check)( be, e, oc,
|
||||
text, textbuf, textlen );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
return rc;
|
||||
|
|
|
|||
|
|
@ -713,6 +713,7 @@ slap_schema_check( void )
|
|||
}
|
||||
|
||||
static int rootDseObjectClass (
|
||||
Backend *be,
|
||||
Entry *e,
|
||||
ObjectClass *oc,
|
||||
const char** text,
|
||||
|
|
@ -732,6 +733,7 @@ static int rootDseObjectClass (
|
|||
}
|
||||
|
||||
static int subentryObjectClass (
|
||||
Backend *be,
|
||||
Entry *e,
|
||||
ObjectClass *oc,
|
||||
const char** text,
|
||||
|
|
@ -747,6 +749,7 @@ static int subentryObjectClass (
|
|||
}
|
||||
|
||||
static int rootDseAttribute (
|
||||
Backend *be,
|
||||
Entry *e,
|
||||
Attribute *attr,
|
||||
const char** text,
|
||||
|
|
@ -766,6 +769,7 @@ static int rootDseAttribute (
|
|||
}
|
||||
|
||||
static int subentryAttribute (
|
||||
Backend *be,
|
||||
Entry *e,
|
||||
Attribute *attr,
|
||||
const char** text,
|
||||
|
|
@ -783,6 +787,7 @@ static int subentryAttribute (
|
|||
}
|
||||
|
||||
static int referralAttribute (
|
||||
Backend *be,
|
||||
Entry *e,
|
||||
Attribute *attr,
|
||||
const char** text,
|
||||
|
|
|
|||
|
|
@ -413,6 +413,7 @@ struct slap_entry;
|
|||
struct slap_attr;
|
||||
|
||||
typedef int (AttributeTypeSchemaCheckFN)(
|
||||
struct slap_backend_db *be,
|
||||
struct slap_entry *e,
|
||||
struct slap_attr *attr,
|
||||
const char** text,
|
||||
|
|
@ -457,6 +458,7 @@ typedef struct slap_attribute_type {
|
|||
struct slap_object_class;
|
||||
|
||||
typedef int (ObjectClassSchemaCheckFN)(
|
||||
struct slap_backend_db *be,
|
||||
struct slap_entry *e,
|
||||
struct slap_object_class *oc,
|
||||
const char** text,
|
||||
|
|
|
|||
Loading…
Reference in a new issue