0 Replies Latest reply on Oct 17, 2007 6:28 PM by Qaiser Mehmood

    Jboss is not calling my custom login module

    Qaiser Mehmood Newbie


      I am trying to write my own Login Module to execute some customization. I am extending class IdentityLoginModule and writing my own code to authenticate and authorize against LDAP. I don't want to use LDAPLoginModule because of some customization. So I wrote my own login module and compiled and now I am trying to use this in a web application but this module is not being executed. Any idea what is wrong?

      I added my Realm setting in server/default/conf/login-config.xml:

      <application-policy name = "QaiserRealm">

      <login-module code = "com.ercot.jaas.plugin.ErcotLoginModule"
      flag = "required">


      My jboss-web.xml is :

      <?xml version='1.0' encoding='UTF-8' ?>

      <!DOCTYPE jboss-web
      PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"


      <class-loading java2ClassLoadingCompliance="false">


      And my web.xml is :

      <?xml version="1.0"?>
      <!DOCTYPE web-app PUBLIC
      "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


      An example security config that only allows users with the
      role JBossAdmin to access the HTML JMX console web application


      This TestRole is comming from LDAP and I am setting this in LoginModule. Problem is my custom login class is not even being called. Any idea?