Commit 27040745 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

hide (experimental) schema

parent 2afa75e3
...@@ -279,6 +279,7 @@ bdb_monitor_initialize( void ) ...@@ -279,6 +279,7 @@ bdb_monitor_initialize( void )
"bdb_monitor_initialize: register_at failed\n", "bdb_monitor_initialize: register_at failed\n",
0, 0, 0 ); 0, 0, 0 );
} }
(*s_at[ i ].ad)->ad_type->sat_flags |= SLAP_AT_HIDE;
} }
for ( i = 0; s_oc[ i ].desc != NULL; i++ ) { for ( i = 0; s_oc[ i ].desc != NULL; i++ ) {
...@@ -288,6 +289,7 @@ bdb_monitor_initialize( void ) ...@@ -288,6 +289,7 @@ bdb_monitor_initialize( void )
"bdb_monitor_initialize: register_oc failed\n", "bdb_monitor_initialize: register_oc failed\n",
0, 0, 0 ); 0, 0, 0 );
} }
(*s_oc[ i ].oc)->soc_flags |= SLAP_OC_HIDE;
} }
return 0; return 0;
......
...@@ -1842,6 +1842,7 @@ dds_initialize() ...@@ -1842,6 +1842,7 @@ dds_initialize()
if ( !do_not_load_schema ) { if ( !do_not_load_schema ) {
static struct { static struct {
char *desc; char *desc;
slap_mask_t flags;
AttributeDescription **ad; AttributeDescription **ad;
} s_at[] = { } s_at[] = {
{ "( 1.3.6.1.4.1.4203.666.1.57 " { "( 1.3.6.1.4.1.4203.666.1.57 "
...@@ -1854,6 +1855,7 @@ dds_initialize() ...@@ -1854,6 +1855,7 @@ dds_initialize()
"SINGLE-VALUE " "SINGLE-VALUE "
"NO-USER-MODIFICATION " "NO-USER-MODIFICATION "
"USAGE dSAOperation )", "USAGE dSAOperation )",
SLAP_AT_HIDE,
&ad_entryExpireTimestamp }, &ad_entryExpireTimestamp },
{ NULL } { NULL }
}; };
...@@ -1865,6 +1867,7 @@ dds_initialize() ...@@ -1865,6 +1867,7 @@ dds_initialize()
"dds_initialize: register_at failed\n", 0, 0, 0 ); "dds_initialize: register_at failed\n", 0, 0, 0 );
return code; return code;
} }
(*s_at[ i ].ad)->ad_type->sat_flags |= SLAP_AT_HIDE;
} }
} }
......
...@@ -3727,6 +3727,7 @@ pcache_initialize() ...@@ -3727,6 +3727,7 @@ pcache_initialize()
"pcache_initialize: register_at #%d failed\n", i, 0, 0 ); "pcache_initialize: register_at #%d failed\n", i, 0, 0 );
return code; return code;
} }
(*as[i].adp)->ad_type->sat_flags |= SLAP_AT_HIDE;
} }
pcache.on_bi.bi_type = "pcache"; pcache.on_bi.bi_type = "pcache";
......
...@@ -1374,9 +1374,7 @@ retcode_initialize( void ) ...@@ -1374,9 +1374,7 @@ retcode_initialize( void )
return code; return code;
} }
#ifndef LDAP_DEVEL
(*retcode_at[ i ].ad)->ad_type->sat_flags |= SLAP_AT_HIDE; (*retcode_at[ i ].ad)->ad_type->sat_flags |= SLAP_AT_HIDE;
#endif /* LDAP_DEVEL */
} }
for ( i = 0; retcode_oc[ i ].desc != NULL; i++ ) { for ( i = 0; retcode_oc[ i ].desc != NULL; i++ ) {
...@@ -1387,9 +1385,7 @@ retcode_initialize( void ) ...@@ -1387,9 +1385,7 @@ retcode_initialize( void )
return code; return code;
} }
#ifndef LDAP_DEVEL
(*retcode_oc[ i ].oc)->soc_flags |= SLAP_OC_HIDE; (*retcode_oc[ i ].oc)->soc_flags |= SLAP_OC_HIDE;
#endif /* LDAP_DEVEL */
} }
retcode.on_bi.bi_type = "retcode"; retcode.on_bi.bi_type = "retcode";
......
...@@ -5181,7 +5181,7 @@ static slap_mrule_defs_rec mrule_defs[] = { ...@@ -5181,7 +5181,7 @@ static slap_mrule_defs_rec mrule_defs[] = {
{"( 1.3.6.1.4.1.4203.666.11.2.5 NAME 'CSNSIDMatch' " {"( 1.3.6.1.4.1.4203.666.11.2.5 NAME 'CSNSIDMatch' "
"SYNTAX 1.3.6.1.4.1.4203.666.11.2.4 )", "SYNTAX 1.3.6.1.4.1.4203.666.11.2.4 )",
SLAP_MR_EQUALITY | SLAP_MR_EXT, csnSIDMatchSyntaxes, SLAP_MR_HIDE | SLAP_MR_EQUALITY | SLAP_MR_EXT, csnSIDMatchSyntaxes,
NULL, csnSidNormalize, octetStringMatch, NULL, csnSidNormalize, octetStringMatch,
octetStringIndexer, octetStringFilter, octetStringIndexer, octetStringFilter,
NULL }, NULL },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment