mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
don't list multiple occurrences of the same overlay
This commit is contained in:
parent
ee4c10d5d0
commit
5a91da6624
@ -217,11 +217,22 @@ monitor_subsys_database_init(
|
|||||||
(void)init_restrictedOperation( mi, e, be->be_restrictops );
|
(void)init_restrictedOperation( mi, e, be->be_restrictops );
|
||||||
|
|
||||||
if ( oi != NULL ) {
|
if ( oi != NULL ) {
|
||||||
slap_overinst *on = oi->oi_list;
|
slap_overinst *on = oi->oi_list,
|
||||||
|
*on1 = on;
|
||||||
|
|
||||||
for ( ; on; on = on->on_next ) {
|
for ( ; on; on = on->on_next ) {
|
||||||
struct berval bv;
|
struct berval bv;
|
||||||
slap_overinst *on2;
|
slap_overinst *on2;
|
||||||
|
|
||||||
|
for ( on2 = on1; on2 != on; on2 = on2->on_next ) {
|
||||||
|
if ( on2->on_bi.bi_type == on->on_bi.bi_type ) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( on2 != on ) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
bv.bv_val = on->on_bi.bi_type;
|
bv.bv_val = on->on_bi.bi_type;
|
||||||
bv.bv_len = strlen( bv.bv_val );
|
bv.bv_len = strlen( bv.bv_val );
|
||||||
@ -246,7 +257,7 @@ monitor_subsys_database_init(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(SLAPD_LDAP)
|
#if 0 // defined(SLAPD_LDAP)
|
||||||
if ( strcmp( bi->bi_type, "ldap" ) == 0 ) {
|
if ( strcmp( bi->bi_type, "ldap" ) == 0 ) {
|
||||||
struct ldapinfo *li = (struct ldapinfo *)be->be_private;
|
struct ldapinfo *li = (struct ldapinfo *)be->be_private;
|
||||||
struct berval bv;
|
struct berval bv;
|
||||||
|
Loading…
Reference in New Issue
Block a user