bconfig.c and back-sql.
break;
case CFG_CHECK:
+#if 0
global_schemacheck = c->value_int;
if(!global_schemacheck) Debug(LDAP_DEBUG_ANY, "%s: "
"schema checking disabled! your mileage may vary!\n",
c->log, 0, 0);
+#endif
break;
case CFG_ACL:
if( op->o_tag == LDAP_REQ_ADD ) {
struct berval tmpval;
- if( global_schemacheck ) {
+ {
int rc = mods_structural_class( mods, &tmpval,
text, textbuf, textlen );
if( rc != LDAP_SUCCESS ) return rc;
LDAP_SLAPD_V (int) global_gentlehup;
LDAP_SLAPD_V (int) global_idletimeout;
-LDAP_SLAPD_V (int) global_schemacheck;
+
+#define global_schemacheck (1)
+
LDAP_SLAPD_V (char *) global_host;
LDAP_SLAPD_V (char *) global_realm;
LDAP_SLAPD_V (char **) default_passwd_hash;
}
}
- /* it's a REALLY bad idea to disable schema checks */
- if( !global_schemacheck ) return LDAP_SUCCESS;
-
/* find the structural object class attribute */
asc = attr_find( e->e_attrs, ad_structuralObjectClass );
if ( asc == NULL ) {
#include "slap.h"
#include "ldap_schema.h"
-int global_schemacheck = 1; /* schemacheck ON is default */
-
static void oc_usage(void);
static void at_usage(void);
break;
}
- if( global_schemacheck ) {
+ {
Attribute *sc = attr_find( e->e_attrs,
slap_schema.si_ad_structuralObjectClass );
Attribute *oc = attr_find( e->e_attrs,
break;
}
- attr_merge_one( e, slap_schema.si_ad_structuralObjectClass, &val, NULL );
+ attr_merge_one( e, slap_schema.si_ad_structuralObjectClass,
+ &val, NULL );
}
/* check schema */