From: Kurt Zeilenga Date: Thu, 27 Jan 2000 17:38:38 +0000 (+0000) Subject: Add support for users to -DSLAPD_UNDEFINED_OC_IS_NOT_EXTENSIBLE X-Git-Tag: OPENLDAP_REL_ENG_1_2_10~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b21a90d20a8fd8969bfc712c5c7784b7acb93395;p=thirdparty%2Fopenldap.git Add support for users to -DSLAPD_UNDEFINED_OC_IS_NOT_EXTENSIBLE (undefined by default) to allow installers to disable undefined objectclass implies extensible object behavior. --- diff --git a/servers/slapd/schema.c b/servers/slapd/schema.c index 244d9c046c..5431913213 100644 --- a/servers/slapd/schema.c +++ b/servers/slapd/schema.c @@ -151,9 +151,11 @@ oc_check_allowed( char *type, struct berval **ocl ) } /* maybe the next oc allows it */ +#ifndef SLAPD_UNDEFINED_OC_IS_NOT_EXTENSIBLE /* we don't know about the oc. assume it allows it */ } else { return( 0 ); +#endif } }