Search code examples
webspheredatasourcejaas

What is the difference between ClientContainer and WSLogin?


I am using WebSphere v8.5 and in the administration console, and the Security Settings in the Data Sources section allow me to set my mapping-configuration alias to either ClientContainer or WSLogin. What is the difference between these two settings?

I am able to connect and my project appears to work regardless of which setting I choose. Can someone please explain when is one setting chosen over the other?

enter image description here


Solution

  • Each one in the list is a Java Authentication and Authorization Service (JAAS) configuration, which in turn contains an IBM-implementation of the JAAS Login Module.

    According to the reference page, Login configuration for Java Authentication and Authorization Service:

    • The WSLogin module defines a login configuration and the LoginModule implementation that can be used by applications in general.
    • The ClientContainer module defines a login configuration and the LoginModule implementation that is similar to the WSLogin module, but enforces the requirements of the WebSphere Application Server client container.
    • The DefaultPrincipalMapping module defines a special LoginModule that is typically used by Java 2 Connector to map an authenticated WebSphere Application Server user identity to a set of user authentication data (user ID and password) for the specified back-end enterprise information system (EIS).

    So for general use, you can use the WSLogin module. When you use a Java EE client, use the ClientContainer module. And when using Java 2 Connectors, use the DefaultPrincipalMapping module.