]> git.sur5r.net Git - openldap/commitdiff
Make sure we don't expose hidden attribute types in rule uses
authorKurt Zeilenga <kurt@openldap.org>
Sat, 31 Aug 2002 20:49:50 +0000 (20:49 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 31 Aug 2002 20:49:50 +0000 (20:49 +0000)
servers/slapd/mr.c

index 5168cba256af688d6064b6ea7c2314642aa69b22..8a203b9784f6db788c9d4a1b396d90f76dad292e 100644 (file)
@@ -382,6 +382,7 @@ matching_rule_use_init( void )
 
                at = NULL;
                for ( at_start( &at ); at; at_next( &at ) ) {
+                       if( at->sat_flags & SLAP_AT_HIDE ) continue;
                        if( mr->smr_usage & SLAP_MR_EXT && ( 
                                mr->smr_syntax == at->sat_syntax ||
                                mr == at->sat_equality ||