]> git.sur5r.net Git - openldap/commitdiff
hide schema
authorPierangelo Masarati <ando@openldap.org>
Sat, 1 Sep 2007 15:32:47 +0000 (15:32 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 1 Sep 2007 15:32:47 +0000 (15:32 +0000)
servers/slapd/overlays/retcode.c

index 76b70d7be7b88b74dccdf018169e151adacddd65..9b7c2cd35cfa0ad080c1a3993e87f514ced67e2a 100644 (file)
@@ -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";