From 20dd3c1273bd7651ea0481b9f16862182751230b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 11 Jan 2002 18:00:22 +0000 Subject: [PATCH] Add Backend to system schema check routines --- servers/slapd/back-monitor/backmon.dsp | 4 ++++ servers/slapd/schema_check.c | 4 ++-- servers/slapd/schema_prep.c | 5 +++++ servers/slapd/slap.h | 2 ++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-monitor/backmon.dsp b/servers/slapd/back-monitor/backmon.dsp index 0c4b76e2b1..ffce395cb6 100644 --- a/servers/slapd/back-monitor/backmon.dsp +++ b/servers/slapd/back-monitor/backmon.dsp @@ -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 diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index 4e44ffaafe..dc5842c187 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -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; diff --git a/servers/slapd/schema_prep.c b/servers/slapd/schema_prep.c index e6572be510..079026f7ad 100644 --- a/servers/slapd/schema_prep.c +++ b/servers/slapd/schema_prep.c @@ -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, diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 6f42c54e24..20c37414a3 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -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, -- 2.39.5