2 Replies Latest reply on Jun 18, 2004 12:25 AM by Guofeng Zhang

    Customized Authecticator failed on JBoss 3.2.4

    Guofeng Zhang Novice

      I developed an authenticator for JBoss for Single-Sogn On by NTLM, I configure it in web.xml as:
      <login-config>
      <auth-method>NTLM</auth-method>
      <realm-name>VCSRealm</realm-name>
      <form-login-config>
      <form-login-page>/wardress/main/sys/login</form-login-page>
      <form-error-page>/wardress/main/sys/loginerror</form-error-page>
      </form-login-config>
      </login-config>

      It works well on JBoss 3.2.3, but now it fails on JBoss 3.2.4. In JBoss 3.2.4, the error message displayed on the console is:
      2004-06-17 15:59:23,430 ERROR [org.apache.catalina.startup.ContextConfig] Cannot configure an authenticator for method NTLM

      The following is process.

      The authenticator:

      import org.jboss.web.tomcat.tc4.authenticator.AuthenticatorBase ;

      public class NTLMAuthenticator extends AuthenticatorBase
      {
      // The authenticator is coded by modifying FormAuthenticator.
      ...
      }

      then I add the following line in Authenticators.properties within tomcat41-service.jar:
      NTLM=com.vnex.security.authenticator.tomcat4.NTLMAuthenticator

      This works well.

      Now in Jboss 3.2.4, I define the authenticator as:

      import org.apache.catalina.authenticator.AuthenticatorBase ;

      public class NTLMAuthenticator extends AuthenticatorBase
      {
      ....
      }

      then I add the following lines in mbeans-descriptors.xml
      within catalina.jar(org\apache\catalina\authenticator):


      <!-- the attributes are the same as that defined by FormAuthenticator -->
      <attribute name="algorithm"
      ................


      When start JBoss 3.2.4, it fails and display the above error message on the cosole.
      (I worked in the same way on JBoss 4.0.0 DR3, it work fine, but fails on JBoss 4.0.0 DR4).

      My question is:
      What wrong with the above definition? Or is there more work to do on JBoss 3.2.4?

      Thanks for your help.