From a2e3b43459451b4cc75549bec8a9471f0c9bc76c Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Tue, 12 Apr 2016 14:13:06 +0000
Subject: [PATCH] OPENDJ-2755: Decouple Rest2LDAP endpoint from the HTTPConnectionHandler.

---
 opendj-server-legacy/resource/config/config.ldif |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/resource/config/config.ldif b/opendj-server-legacy/resource/config/config.ldif
index 423bfaa..c08f66d 100644
--- a/opendj-server-legacy/resource/config/config.ldif
+++ b/opendj-server-legacy/resource/config/config.ldif
@@ -373,8 +373,21 @@
 ds-cfg-use-ssl: false
 ds-cfg-ssl-client-auth-policy: optional
 ds-cfg-ssl-cert-nickname: server-cert
-ds-cfg-config-file: config/http-config.json
+
+dn: cn=HTTP Endpoints,cn=config
+objectClass: top
+objectClass: ds-cfg-branch
+cn: HTTP Endpoints
+
+dn: ds-cfg-base-path=/api,cn=HTTP Endpoints,cn=config
+objectClass: top
+objectClass: ds-cfg-http-endpoint
+objectClass: ds-cfg-rest2ldap-endpoint
+ds-cfg-enabled: true
+ds-cfg-java-class: org.opends.server.protocols.http.rest2ldap.Rest2LdapEndpoint
+ds-cfg-base-path: /api
 ds-cfg-authentication-required: true
+ds-cfg-config-url: config/http-config.json
 
 dn: cn=LDIF Connection Handler,cn=Connection Handlers,cn=config
 objectClass: top

--
Gitblit v1.10.0