2 Replies Latest reply on Jul 12, 2012 5:13 AM by ravikumarrs

    JAAS Configuration!

    ravikumarrs

      Hi,

       

      I have a requirement to implement the JAAS for login module. I have done all the necessary setting to make JAAS work. But when try to login, giving the below error.

      • Caught Exception: javax.security.auth.login.LoginException: No LoginModules configured for Example *

       

      Can anyone please guide me to come over this issue? Where the jaas configuration file should be placed?

       

      Any links/suggestions/advices are greatly received.

       

      Ravi

        • 1. Re: JAAS Configuration!
          ffang

          Hi,

           

          Take a look at , it should be a good start for you.

           

          http://karaf.apache.org/manual/latest-2.2.x/developers-guide/security-framework.html

          Freeman

          • 2. Re: JAAS Configuration!
            ravikumarrs

            Hi,

             

            Thanks for your reply.

            I have a login screen after submitting, going to controller. In Controller I am creating the LoginContext passing the Callbackhandler and the name of the module which is defined in the JAAS configuration file. Ex: MyLogin { RDBMSLoginModule required }.

            I kept the jaas.conf in WEB-INF folder and I am getting the below exception.

             

            Caught Exception: javax.security.auth.login.LoginException: No LoginModules configured for Example

             

            I would like to know, where do I need to keep this jaas.conf file in the application, after deploying as a bundle it should be able to read the .conf file to get the login module name. Or any other way to achieve this.

             

            Any help is greatly received.