| | |
| | | { |
| | | suffixes = new TreeSet<>(); |
| | | } |
| | | DN newDN = DN.valueOf(ADSContext.getAdministrationSuffixDN()); |
| | | DN newDN = ADSContext.getAdministrationSuffixDN(); |
| | | if (suffixes.add(newDN)) |
| | | { |
| | | backend.setBaseDN(suffixes); |
| | |
| | | problem getting the instance public key certificate ID. |
| | | */ |
| | | void registerInstanceKeyCertificate(ConnectionWrapper conn, Map<ServerProperty, Object> serverProperties, |
| | | String serverEntryDn) throws ADSContextException |
| | | DN serverEntryDn) throws ADSContextException |
| | | { |
| | | if (! serverProperties.containsKey( |
| | | ServerProperty.INSTANCE_PUBLIC_KEY_CERTIFICATE)) { |
| | |
| | | serverProperties.get(ServerProperty.INSTANCE_PUBLIC_KEY_CERTIFICATE))); |
| | | |
| | | /* search for public-key certificate entry in ADS DIT */ |
| | | DN dn = DN.valueOf(ADSContext.getInstanceKeysContainerDN()); |
| | | DN dn = ADSContext.getInstanceKeysContainerDN(); |
| | | SearchRequest searchRequest = newSearchRequest(dn, WHOLE_SUBTREE, filter, "ds-cfg-key-id"); |
| | | try (ConnectionEntryReader entryReader = conn.getConnection().search(searchRequest)) |
| | | { |