From 9910f9f8575a26c64caced0be7437f9eaef84cdc Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 05 Mar 2013 10:38:34 +0000
Subject: [PATCH] Initial work for OPENDJ-699: Implement DN reference mapping
---
opendj3/opendj-rest2ldap-servlet/src/main/webapp/opendj-rest2ldap-servlet.json | 39 +++++++++++++++++++++++++++++++++++++--
1 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/opendj3/opendj-rest2ldap-servlet/src/main/webapp/opendj-rest2ldap-servlet.json b/opendj3/opendj-rest2ldap-servlet/src/main/webapp/opendj-rest2ldap-servlet.json
index 3feda51..788501d 100644
--- a/opendj3/opendj-rest2ldap-servlet/src/main/webapp/opendj-rest2ldap-servlet.json
+++ b/opendj3/opendj-rest2ldap-servlet/src/main/webapp/opendj-rest2ldap-servlet.json
@@ -40,13 +40,48 @@
"rev" : { "simple" : { "ldapAttribute" : "etag", "isSingleValued" : true, "writability" : "readOnly" } },
"userName" : { "simple" : { "ldapAttribute" : "mail", "isSingleValued" : true, "writability" : "readOnly" } },
"displayName" : { "simple" : { "ldapAttribute" : "cn", "isSingleValued" : true, "isRequired" : true } },
- "name" : { "object" : {
+ "name" : { "object" : {
"givenName" : { "simple" : { "ldapAttribute" : "givenName", "isSingleValued" : true } },
"familyName" : { "simple" : { "ldapAttribute" : "sn", "isSingleValued" : true, "isRequired" : true } }
} },
- "contactInformation" : { "object" : {
+ "manager" : { "simple" : { "ldapAttribute" : "manager", "isSingleValued" : true } },
+ "groups" : { "simple" : { "ldapAttribute" : "isMemberOf", "writability" : "readOnly" } },
+ "contactInformation" : { "object" : {
"telephoneNumber" : { "simple" : { "ldapAttribute" : "telephoneNumber", "isSingleValued" : true } },
"emailAddress" : { "simple" : { "ldapAttribute" : "mail", "isSingleValued" : true } }
+ } },
+ "meta" : { "object" : {
+ "created" : { "simple" : { "ldapAttribute" : "createTimestamp", "isSingleValued" : true, "writability" : "readOnly" } },
+ "lastModified" : { "simple" : { "ldapAttribute" : "modifyTimestamp", "isSingleValued" : true, "writability" : "readOnly" } }
+ } }
+ }
+ },
+ "/groups" : {
+ "baseDN" : "ou=groups,dc=example,dc=com",
+ "readOnUpdatePolicy" : "controls",
+ "additionalLDAPAttributes" : [
+ {
+ "type" : "objectClass",
+ "values" : [
+ "top",
+ "groupofuniquenames"
+ ]
+ }
+ ],
+ "namingStrategy" : {
+ "strategy" : "clientDNNaming",
+ "dnAttribute" : "cn"
+ },
+ "etagAttribute" : "etag",
+ "attributes" : {
+ "schemas" : { "constant" : [ "urn:scim:schemas:core:1.0" ] },
+ "id" : { "simple" : { "ldapAttribute" : "cn", "isSingleValued" : true, "isRequired" : true, "writability" : "createOnly" } },
+ "rev" : { "simple" : { "ldapAttribute" : "etag", "isSingleValued" : true, "writability" : "readOnly" } },
+ "displayName" : { "simple" : { "ldapAttribute" : "cn", "isSingleValued" : true, "isRequired" : true, "writability" : "readOnly" } },
+ "members" : { "simple" : { "ldapAttribute" : "uniquemember" } },
+ "meta" : { "object" : {
+ "created" : { "simple" : { "ldapAttribute" : "createTimestamp", "isSingleValued" : true, "writability" : "readOnly" } },
+ "lastModified" : { "simple" : { "ldapAttribute" : "modifyTimestamp", "isSingleValued" : true, "writability" : "readOnly" } }
} }
}
}
--
Gitblit v1.10.0