mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Yannick Lecaillez
06.00.2016 db74322864687d2ecdf69d46bbf96dfd8c0f0448
OPENDJ-3202: Rest2ldap gateway configuration file: 'root' is hard-coded
for basic authentication.

root ldap connection factory is mandatory and cannot be renamed. The fix
generate a user-friendly error message if this root connection factory
is missing from the config file.
1 files modified
2 ■■■■■ changed files
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LdapHttpApplication.java 2 ●●●●● patch | view | raw | blame | history
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LdapHttpApplication.java
@@ -237,6 +237,8 @@
    }
    private void configureConnectionFactories(final JsonValue config) {
        // Make sure that the mandatory root connection factory exists (used to perform the proxy-authz operations).
        config.get(DEFAULT_ROOT_FACTORY).required();
        connectionFactories.clear();
        for (String name : config.keys()) {
            connectionFactories