3 Replies Latest reply on Dec 10, 2004 7:59 AM by Thomas Cherel

    NTLoginModule using problem

    andrew bykov Newbie

      Hello 2 all!
      I have a problem with JBoss and JAAS NTLoginModule.
      my jboss/jsp/struts web application must perform NT account based client authenification.

      So, I create new jboss security domain:

      login-config.xml
      ...
      <application-policy name = "bpm">

      <login-module code = "com.sun.security.auth.module.NTLoginModule"
      flag = "required">
      <module-option name = "debug">true</module-option>
      </login-module>

      </application-policy>

      auth.conf file for client and server default configuration:
      bpm
      {
      com.sun.security.auth.module.NTLoginModule required debug=true;
      };

      and then in application (in Struts action) :
      ...
      try {
      LoginContext loginContext = new LoginContext("bpm", new TextCallbackHandler());
      loginContext.login();
      ......
      }
      catch (LoginException e) {
      logger.error("login context creation failed: "+e.getMessage());
      }

      Compiling and deployment is succesfull, and application works, BUT :((
      jboss write to its console not client, but server computer NT account...

      What's incorrect?

      Thanks in advance.
      Andrew