From: Howard Chu Date: Tue, 29 Aug 2006 02:02:12 +0000 (+0000) Subject: Hide config schema if !LDAP_DEVEL X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~242 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c9562fa8fbf7f66ad62f691705784f09ddb256fc;p=openldap Hide config schema if !LDAP_DEVEL --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index e467df82e3..a9bacd0a62 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -509,6 +509,10 @@ init_config_attrs(ConfigTable *ct) { fprintf( stderr, "init_config_attrs: AttributeType \"%s\": %s\n", ct[i].attribute, err ); return code; + } else { +#ifndef LDAP_DEVEL + ct[i].ad->ad_type->sat_flags |= SLAP_AT_HIDE; +#endif } } @@ -539,10 +543,14 @@ init_config_ocs( ConfigOCs *ocs ) { return code; } ocs[i].co_oc = oc_find(oc->oc_names[0]); - if ( code ) + if ( code ) { ldap_objectclass_free(oc); - else + } else { ldap_memfree(oc); +#ifndef LDAP_DEVEL + ocs[i].co_oc->soc_flags |= SLAP_OC_HIDE; +#endif + } } return 0; }