In type-based data partitioning, principals of different types (users, groups, and so on) are stored on different data sources.
Marcus Kopp wants to store all new users on the database of the SAP NetWeaver Application Server (AS) Java, and new groups on the directory service. As a result:
Marcus modifies his data source configuration file as follows:
Example
<dataSource id="PRIVATE_DATASOURCE" className="com.sap.security.core.persistence.datasource.imp.DataBasePersistence" isReadonly="false" isPrimary="true"> <homeFor> <principals> <principal type="USER"> <!-- No substructure specified means home for all principals of type "USER" except the ones in notHomeFor-Section --> </principal> </principals> </homeFor> <notHomeFor> </notHomeFor> ... </dataSource> <dataSource id="CORP_LDAP" className="com.sap.security.core.persistence.datasource.imp.DataBasePersistence" isReadonly="false" isPrimary="true"> <homeFor> <principals> <principal type="GRUP"> <!-- No substructure specified means home for all principals of type "GRUP" except the ones in notHomeFor-Section --> </principal> </principals> </homeFor> <notHomeFor> </notHomeFor> ... </dataSource>