| | |
| | | |
| | | String id = getFirstValue(sr, "ds-cfg-backend-id"); |
| | | |
| | | if (!isConfigBackend(id)) |
| | | if (!isConfigBackend(id) || isSchemaBackend(id)) |
| | | { |
| | | Set<String> baseDns = getValues(sr, "ds-cfg-backend-base-dn"); |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * An convenience method to know if the provided ID corresponds to the schema |
| | | * backend or not. |
| | | * @param id the backend ID to analyze |
| | | * @return <CODE>true</CODE> if the the id corresponds to the schema backend |
| | | * and <CODE>false</CODE> otherwise. |
| | | */ |
| | | private static boolean isSchemaBackend(String id) |
| | | { |
| | | return "schema".equalsIgnoreCase(id); |
| | | } |
| | | /** |
| | | * Returns <CODE>true</CODE> if the the provided strings represent the same |
| | | * DN and <CODE>false</CODE> otherwise. |
| | | * @param dn1 the first dn to compare. |