OPENDJ-3160 Minor fixes to Rest2Ldap configuration
* revert changes which broke REST API compatibility
* re-align both the gateway and embedded Rest2Ldap configuration.
| | |
| | | // 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", |
| | |
| | | "manager": { |
| | | "type": "reference", |
| | | "ldapAttribute": "manager", |
| | | "baseDn": "ou=people,dc=example,dc=com", |
| | | "baseDn": "..", |
| | | "primaryKey": "uid", |
| | | "mapper": { |
| | | "type": "object", |
| | |
| | | "groups": { |
| | | "type": "reference", |
| | | "ldapAttribute": "isMemberOf", |
| | | "baseDn": "ou=groups,dc=example,dc=com", |
| | | "baseDn": "ou=groups,..,..", |
| | | "isMultiValued": true, |
| | | "writability": "readOnly", |
| | | "primaryKey": "cn", |
| | |
| | | "members": { |
| | | "type": "reference", |
| | | "ldapAttribute": "uniqueMember", |
| | | "baseDn": "dc=example,dc=com", |
| | | "baseDn": "ou=people,..,..", |
| | | "primaryKey": "uid", |
| | | "isMultiValued": true, |
| | | "mapper": { |