SAP Mobile Platform includes predefined logical roles, and uses HttpServletRequest.isUserInRole(logicalRole) for its policy enforcement points in the runtime. Physical roles assigned to a user come from your identity management back-end systems. Those physical roles are manually mapped to SAP Mobile Platform logical roles by editing the appropriate role-mapping.xml file.
A common implementation example is using the Directory Service (LDAP/AD) authentication provider in an SAP Mobile Platform security profile, and mapping to the LDAP groups to which a user belongs. Each LDAP group has a physical role attributed to the authenticated user in SAP Mobile Platform.
The CSI then uses the role-mapping configuration to convert the isUserInRole() check to see if the user is granted any of the physical roles defined in the role-mapping for the security profile. Role mapping is particularly important for the Admin security configuration where authorized users must be mapped to the Administrator logical role. Additionally, in other security profiles, it is important to map Impersonator and Notification User roles, depending on your scenario.
The security profiles are persisted in files that are located in <SMP_HOME>\Server\configuration\com.sap.mobile.platform.server.security\CSI. To map a logical role to the appropriate physical role in the underlying security provider in a given security profile, you must manually edit the corresponding <Security_Profile_name>-role-mapping.xml file.
Management Cockpit always authenticates against the Admin security profile and requires that the user be granted the Administrator role to successfully log into Management Cockpit.
The following steps describe mapping the Admin role. These same steps apply to any logical role, where you edit the corresponding <role-name>-role-mapping.xml file. To map the Administrator logical role to physical role on your back-end security system, perform the following steps: