Show TOC Start of Content Area

This graphic is explained in the accompanying text Example: Type-Based Data Partitioning  Locate the document in its SAP Library structure

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:

        All new users get an ID from the database of the AS Java data source. The unique ID of new users starts with "USER.PRIVATE_DATASOURCE."

        All new groups get an ID from the directory service data source. The unique ID of new groups starts with "GRUP.CORP_LDAP."

        All namespace-attribute-value triples for which the database of the AS Java data source is responsible for are stored on this data source; all others are distributed on other data sources.

        All namespace-attribute-value triples for which the directory server data source is responsible for are stored on this data source; all others are distributed on other data sources

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>

 

End of Content Area