| | |
| | | { |
| | | for (String suffix : suffixes) |
| | | { |
| | | if (!isSchemaOrAdminSuffix(suffix)) |
| | | if (!isSchemaOrInternalAdminSuffix(suffix)) |
| | | { |
| | | return false; |
| | | } |
| | |
| | | return true; |
| | | } |
| | | |
| | | private boolean isSchemaOrAdminSuffix(String suffix) |
| | | private boolean isSchemaOrInternalAdminSuffix(String suffix) |
| | | { |
| | | return areDnsEqual(suffix, ADSContext.getAdministrationSuffixDN()) |
| | | || areDnsEqual(suffix, Constants.SCHEMA_DN); |
| | | || areDnsEqual(suffix, Constants.SCHEMA_DN) |
| | | || areDnsEqual(suffix, Constants.REPLICATION_CHANGES_DN); |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | for (String dn : availableSuffixes) |
| | | { |
| | | if (!isSchemaOrAdminSuffix(dn)) |
| | | if (!isSchemaOrInternalAdminSuffix(dn)) |
| | | { |
| | | try |
| | | { |
| | |
| | | |
| | | for (String dn : availableSuffixes) |
| | | { |
| | | if (!isSchemaOrAdminSuffix(dn)) |
| | | if (!isSchemaOrInternalAdminSuffix(dn)) |
| | | { |
| | | boolean addSuffix; |
| | | try |
| | |
| | | |
| | | for (SuffixDescriptor suffix : cache.getSuffixes()) |
| | | { |
| | | if (isSchemaOrAdminSuffix(suffix.getDN())) |
| | | if (isSchemaOrInternalAdminSuffix(suffix.getDN())) |
| | | { |
| | | // Do not display these suffixes. |
| | | continue; |
| | |
| | | Set<String> baseDNs = new LinkedHashSet<String>(); |
| | | for (SuffixDescriptor suffix : beforeLastRepServer) |
| | | { |
| | | if (!isSchemaOrAdminSuffix(suffix.getDN())) |
| | | if (!isSchemaOrInternalAdminSuffix(suffix.getDN())) |
| | | { |
| | | // Do not display these suffixes. |
| | | baseDNs.add(suffix.getDN()); |
| | |
| | | boolean baseDNSpecified = false; |
| | | for (String baseDN : uData.getBaseDNs()) |
| | | { |
| | | if (!isSchemaOrAdminSuffix(baseDN) |
| | | && areDnsEqual(baseDN, suffix.getDN())) |
| | | if (!isSchemaOrInternalAdminSuffix(baseDN) && areDnsEqual(baseDN, suffix.getDN())) |
| | | { |
| | | baseDNSpecified = true; |
| | | break; |
| | |
| | | |
| | | // If no base DNs where specified display all the base DNs but the schema |
| | | // and cn=admin data. |
| | | boolean found = containsDN(userBaseDNs, dn) |
| | | || (displayAll && !isSchemaOrAdminSuffix(dn)); |
| | | boolean found = containsDN(userBaseDNs, dn) || (displayAll && !isSchemaOrInternalAdminSuffix(dn)); |
| | | if (found) |
| | | { |
| | | boolean replicated = false; |