Commit 20dd3c12 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add Backend to system schema check routines

parent 6c76b2c5
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment