From 63a7a69b8963821f067e2dc931bc30ff47f67132 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 1 Sep 2007 15:32:47 +0000 Subject: [PATCH] hide schema --- servers/slapd/overlays/retcode.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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"; -- 2.39.5