]> git.sur5r.net Git - openldap/commitdiff
Add support for users to -DSLAPD_UNDEFINED_OC_IS_NOT_EXTENSIBLE
authorKurt Zeilenga <kurt@openldap.org>
Thu, 27 Jan 2000 17:38:38 +0000 (17:38 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 27 Jan 2000 17:38:38 +0000 (17:38 +0000)
(undefined by default) to allow installers to disable undefined
objectclass implies extensible object behavior.

servers/slapd/schema.c

index 244d9c046c179a7f036f41d75cc52d483ba5c42c..543191321318e9c979c2393e45c5935d76e767f4 100644 (file)
@@ -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
                }
        }