Topic
2 replies Latest Post - ‏2013-09-10T10:07:27Z by wellsmith
wellsmith
wellsmith
8 Posts
ACCEPTED ANSWER

Pinned topic jaas configuration, No LoginModules configured for eauth

‏2013-09-09T03:15:43Z |

Hi all,  we are migrating from tomcat to liberty but blocked by jaas configuration, could someone help to solve this issue?

the log message always show:  No LoginModules configured for eauth

 here is some the server.xml:

<featureManager>
                <feature>appSecurity-2.0</feature>
        </featureManager>

        <library id="ppmLoginLib">
                 <fileset dir="${shared.resource.dir}/ppm" includes="saslogin.jar" />
        </library>
        <library id="lsfLoginLib">
                 <fileset dir="${shared.resource.dir}/ppm" includes="lsfsecurity.jar" />
        </library>
        <jaasLoginModule id="UsernamePassword"
                 className="com.platform.SASLogin.UsernamePasswordLogin"
                 controlFlag="REQUIRED" libraryRef="ppmLoginLib">
        </jaasLoginModule>
        <jaasLoginModule id="eauth"
                 className="com.platform.LSF.security.EauthLogin"
                 controlFlag="REQUIRED" libraryRef="lsfLoginLib">
        </jaasLoginModule>
        <jaasLoginContextEntry id="system.WEB_INBOUND" name="system.WEB_INBOUND"
                 loginModuleRef="eauth, UsernamePassword, UsernamePasswordCLI, UsernamePasswordGUI, hashtable, userNameAndPassword, certificate, token"  />  
 

  • utle@us.ibm.com
    utle@us.ibm.com
    8 Posts
    ACCEPTED ANSWER

    Re: jaas configuration, No LoginModules configured for eauth

    ‏2013-09-09T16:13:12Z  in response to wellsmith

    Hi,

     I would expect to get the below warning messages for UsernamePasswordCLI and UsernamePasswordGUI since there are no jaasLoginModule defined but not "No LoginModules configured for eauth" message.

    W CWWKG0033W: The value [UsernamePasswordGUI] specified for the reference attribute [loginModuleRef] was not found in the configuration.

    Can you turn on the trace "com.ibm.ws.security.*=all=enabled:com.ibm.ws.webcontainer.security.*=-all=enabled", re-create this problem and post the trace.log, message.log and server.xml files.

    Have you try to remove the UsernamePasswordCLI and UsernamePasswordGUI in the loginModuleRef to see if you see the same error?

    Thanks,

    Ut Le

    • wellsmith
      wellsmith
      8 Posts
      ACCEPTED ANSWER

      Re: jaas configuration, No LoginModules configured for eauth

      ‏2013-09-10T10:07:27Z  in response to utle@us.ibm.com

      thanks for your reply.

       

      Now I have change the server.xml and configure it to:

      <jaasLoginModule id="UsernamePasswordModule"
      className="com.platform.SASLogin.UsernamePasswordLogin"
      controlFlag="REQUIRED" libraryRef="ppmLoginLib">
      </jaasLoginModule>
      <jaasLoginModule id="eauthModule"
      className="com.platform.LSF.security.EauthLogin"
      controlFlag="REQUIRED" libraryRef="ppmLoginLib">
      </jaasLoginModule>
      <jaasLoginContextEntry id="eauth" name="eauth"
      loginModuleRef="eauthModule" />
      <jaasLoginContextEntry id="UsernamePassword" name="UsernamePassword"
      loginModuleRef="UsernamePasswordModule" />

       

      we meet a internal error, but still thanks for you