From: Pierangelo Masarati Date: Sat, 1 Sep 2007 15:32:47 +0000 (+0000) Subject: hide schema X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63a7a69b8963821f067e2dc931bc30ff47f67132;p=openldap hide schema --- diff --git a/servers/slapd/overlays/retcode.c b/servers/slapd/overlays/retcode.c index 76b70d7be7..9b7c2cd35c 100644 --- a/servers/slapd/overlays/retcode.c +++ b/servers/slapd/overlays/retcode.c @@ -1373,6 +1373,10 @@ retcode_initialize( void ) "retcode: register_at failed\n", 0, 0, 0 ); return code; } + +#ifndef LDAP_DEVEL + (*retcode_at[ i ].ad)->ad_type->sat_flags |= SLAP_AT_HIDE; +#endif /* LDAP_DEVEL */ } for ( i = 0; retcode_oc[ i ].desc != NULL; i++ ) { @@ -1382,6 +1386,10 @@ retcode_initialize( void ) "retcode: register_oc failed\n", 0, 0, 0 ); return code; } + +#ifndef LDAP_DEVEL + (*retcode_oc[ i ].oc)->soc_flags |= SLAP_OC_HIDE; +#endif /* LDAP_DEVEL */ } retcode.on_bi.bi_type = "retcode";