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

Matthew Swift
25.40.2016 219f1d0501c4a142d713a40d88623ba55e63fe3f
OPENDJ-3160 Minor fixes to Rest2Ldap configuration

* revert changes which broke REST API compatibility
* re-align both the gateway and embedded Rest2Ldap configuration.
2 files modified
14 ■■■■ changed files
opendj-rest2ldap-servlet/src/main/webapp/WEB-INF/classes/rest2ldap/endpoints/api/example-v1.json 8 ●●●● patch | view | raw | blame | history
opendj-server-legacy/resource/config/rest2ldap/endpoints/api/example-v1.json 6 ●●●● patch | view | raw | blame | history
opendj-rest2ldap-servlet/src/main/webapp/WEB-INF/classes/rest2ldap/endpoints/api/example-v1.json
@@ -12,18 +12,18 @@
        // does not have any properties itself. Template variables are permitted within the URL and DN templates.
        "example-v1": {
            "subResources": {
                "{tenant}/users": {
                "users": {
                    "type": "collection",
                    "dnTemplate": "ou=people,dc={tenant},dc=com",
                    "dnTemplate": "ou=people,dc=example,dc=com",
                    "resource": "frapi:opendj:rest2ldap:user:1.0",
                    "namingStrategy": {
                        "type": "clientDnNaming",
                        "dnAttribute": "uid"
                    }
                },
                "{tenant}/groups": {
                "groups": {
                    "type": "collection",
                    "dnTemplate": "ou=groups,dc={tenant},dc=com",
                    "dnTemplate": "ou=groups,dc=example,dc=com",
                    "resource": "frapi:opendj:rest2ldap:group:1.0",
                    "namingStrategy": {
                        "type": "clientDnNaming",
opendj-server-legacy/resource/config/rest2ldap/endpoints/api/example-v1.json
@@ -109,7 +109,7 @@
                "manager": {
                    "type": "reference",
                    "ldapAttribute": "manager",
                    "baseDn": "ou=people,dc=example,dc=com",
                    "baseDn": "..",
                    "primaryKey": "uid",
                    "mapper": {
                        "type": "object",
@@ -130,7 +130,7 @@
                "groups": {
                    "type": "reference",
                    "ldapAttribute": "isMemberOf",
                    "baseDn": "ou=groups,dc=example,dc=com",
                    "baseDn": "ou=groups,..,..",
                    "isMultiValued": true,
                    "writability": "readOnly",
                    "primaryKey": "cn",
@@ -207,7 +207,7 @@
                "members": {
                    "type": "reference",
                    "ldapAttribute": "uniqueMember",
                    "baseDn": "dc=example,dc=com",
                    "baseDn": "ou=people,..,..",
                    "primaryKey": "uid",
                    "isMultiValued": true,
                    "mapper": {