directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1506640 - /directory/escimo/trunk/ldap/src/main/resources/escimo-ldap-mapping.xml
Date Wed, 24 Jul 2013 17:46:14 GMT
Author: kayyagari
Date: Wed Jul 24 17:46:14 2013
New Revision: 1506640

URL: http://svn.apache.org/r1506640
Log:
updated schema mappings

Modified:
    directory/escimo/trunk/ldap/src/main/resources/escimo-ldap-mapping.xml

Modified: directory/escimo/trunk/ldap/src/main/resources/escimo-ldap-mapping.xml
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/ldap/src/main/resources/escimo-ldap-mapping.xml?rev=1506640&r1=1506639&r2=1506640&view=diff
==============================================================================
--- directory/escimo/trunk/ldap/src/main/resources/escimo-ldap-mapping.xml (original)
+++ directory/escimo/trunk/ldap/src/main/resources/escimo-ldap-mapping.xml Wed Jul 24 17:46:14
2013
@@ -1,91 +1,109 @@
 <?xml version="1.0"?>
 <entities>
-	<user>
-		<objectClasses>
-			<objectClass name="inetOrgPerson" />
-		</objectClasses>
-		<attributes>
-			<attribute name="userName" mappedTo="uid" />
-			<attribute name="displayName" mappedTo="displayName" />
-			<attribute name="nickName" mappedTo="" />
-			<attribute name="profileUrl" mappedTo="" />
-			<attribute name="title" mappedTo="title" />
-			<attribute name="userType" mappedTo="employeeType" />
-			<attribute name="preferredLanguage" mappedTo="preferredLanguage" />
-			<attribute name="locale" mappedTo="" />
-			<attribute name="timezone" mappedTo="" />
-			<attribute name="active" mappedTo="" />
-			<attribute name="password" mappedTo="userPassword" />
+	<schema id="user-core" uri="urn:scim:schemas:core:1.0">
+		<attribute name="id" mappedTo="entryUUID" />
+		<attribute name="userName" mappedTo="uid" />
+		<attribute name="displayName" mappedTo="displayName" />
+		<attribute name="nickName" mappedTo="" />
+		<attribute name="profileUrl" mappedTo="" />
+		<attribute name="title" mappedTo="title" />
+		<attribute name="userType" mappedTo="employeeType" />
+		<attribute name="preferredLanguage" mappedTo="preferredLanguage" />
+		<attribute name="locale" mappedTo="" />
+		<attribute name="timezone" mappedTo="" />
+		<attribute name="active" mappedTo="" />
+		<attribute name="password" show="false" mappedTo="userPassword" />
+
+		<complex-attribute name="name">
+			<at-group>
+				<attribute name="familyName" mappedTo="sn" />
+				<attribute name="givenName" mappedTo="cn" />
+				<attribute name="middleName" mappedTo="" />
+				<attribute name="honorificPrefix" mappedTo="title" />
+				<attribute name="honorificSuffix" mappedTo="" />
+				<formatted format="$givenName $familyName" />
+			</at-group>
+		</complex-attribute>
+
+		<complex-attribute name="emails">
+			<type name="work" primary="true">
+				<attribute name="value" mappedTo="mail" />
+			</type>
+		</complex-attribute>
 
-			<complex-attribute name="name" mappedTo="">
+		<complex-attribute name="phoneNumbers">
+			<type name="work" primary="true">
 				<at-group>
-					<attribute name="familyName" mappedTo="sn" />
-					<attribute name="givenName" mappedTo="cn" />
-					<attribute name="middleName" mappedTo="" />
-					<attribute name="honorificPrefix" mappedTo="title" />
-					<attribute name="honorificSuffix" mappedTo="" />
-					<formatter format="givenName familyName" />
+					<attribute name="value" mappedTo="telephoneNumber" />
 				</at-group>
-			</complex-attribute>
-			
-			<complex-attribute name="emails">
-				<type name="work" primary="true">
-					<attribute name="value" mappedTo="mail" />
-				</type>
-			</complex-attribute>
-
-			<complex-attribute name="phoneNumbers">
-				<type name="work" primary="true">
-					<at-group>
-						<attribute name="value" mappedTo="telephoneNumber" />
-					</at-group>
-				</type>
-				<type name="home" primary="false">
-					<at-group>
-						<attribute name="value" mappedTo="homePhone" />
-					</at-group>
-				</type>
-			</complex-attribute>
-
-			<complex-attribute name="ims">
-			</complex-attribute>
-
-			<complex-attribute name="photos">
-				<type name="photo" primary="true">
-					<at-group>
-						<attribute name="value" mappedTo="jpegPhoto" />
-					</at-group>
-				</type>
-			</complex-attribute>
-
-			<complex-attribute name="addresses" multivalued="true">
-				<type name="work" primary="true">
-					<at-group>
-						<attribute name="streetAddress" mappedTo="street" />
-						<attribute name="locality" mappedTo="l" />
-						<attribute name="region" mappedTo="region" />
-						<attribute name="postalCode" mappedTo="postalCode" />
-						<attribute name="country" mappedTo="" />
-						<formatter format="streetAddress locality" />
-					</at-group>
-				</type>
-			</complex-attribute>
-
-			<complex-attribute name="groups">
-				<type>
-				</type>
-			</complex-attribute>
-			<attribute name="ims" multivalued="true">
-			</attribute>
-			<attribute name="ims" multivalued="true">
-			</attribute>
-			<attribute name="" mappedTo="" />
-			<attribute name="" mappedTo="" />
-			<attribute name="" mappedTo="" />
-			<attribute name="" mappedTo="" />
-			<attribute name="" mappedTo="" />
-			<attribute name="" mappedTo="" />
-			<attribute name="" mappedTo="" />
-		</attributes>
-	</user>
+			</type>
+			<type name="home" primary="false">
+				<at-group>
+					<attribute name="value" mappedTo="homePhone" />
+				</at-group>
+			</type>
+		</complex-attribute>
+
+		<complex-attribute name="ims">
+		</complex-attribute>
+
+		<complex-attribute name="photos">
+			<type name="photo" primary="true">
+				<at-group>
+					<attribute name="value" mappedTo="jpegPhoto" />
+				</at-group>
+			</type>
+		</complex-attribute>
+
+		<complex-attribute name="addresses">
+			<type name="work" primary="true">
+				<at-group>
+					<attribute name="streetAddress" mappedTo="street" />
+					<attribute name="locality" mappedTo="l" />
+					<attribute name="region" mappedTo="region" />
+					<attribute name="postalCode" mappedTo="postalCode" />
+					<attribute name="country" mappedTo="" />
+					<formatted format="$streetAddress $locality" />
+				</at-group>
+			</type>
+		</complex-attribute>
+
+		<complex-attribute name="groups">
+			<at-group>
+				<attribute name="value" mappedTo="entryUUID" />
+			</at-group>
+		</complex-attribute>
+
+		<complex-attribute name="meta">
+			<at-group>
+				<attribute name="created" mappedTo="createTimestamp" />
+				<attribute name="lastModified" mappedTo="lastModifiedTimestamp" />
+			</at-group>
+		</complex-attribute>
+		
+	</schema>
+
+	<schema id="group" uri="urn:scim:schemas:core:1.0">
+		<attribute name="displayName" mappedTo="cn" />
+		<attribute name="id" mappedTo="entryUUID" />
+		<complex-attribute name="members">
+			<at-group>
+				<attribute name="streetAddress" mappedTo="street" />
+				<attribute name="locality" mappedTo="l" />
+				<attribute name="region" mappedTo="region" />
+				<attribute name="postalCode" mappedTo="postalCode" />
+				<attribute name="country" mappedTo="" />
+				<formatted format="$streetAddress $locality" />
+			</at-group>
+		</complex-attribute>
+
+	</schema>
+
+	<userType basedDn="ou=system" filter="(objectClass = inetOrgPerson)">
+		<schemaRef id="user-core" />
+	</userType>
+
+	<groupType  basedDn="ou=system" filter="(objectClass = inetOrgPerson)">
+		<schemaRef id="group" />
+	</groupType>
 </entities>
\ No newline at end of file



Mime
View raw message