1 Reply Latest reply on Mar 17, 2011 9:25 PM by welle

    How can I make twiddle be authenticated by jaas module?

    dmatheus

      I have to make twiddle being authenticated by my own jaas module. What can I do?

       

      Example login-config:

          <application-policy name = "logon">

             <authentication>

                <login-module code = "MyClass.LogonServerLoginModule"

                   flag = "required" >

                      <module-option name="principalClass">MyClassl</module-option>

                      <module-option name="logonServer">${logonServer}</module-option>

                      <module-option name="logonPort">${logonPort}</module-option>

                  </login-module>

             </authentication>

          </application-policy>

       

      My bash script will be seems like this:

      #!/bin/bash

      PASSWORD=""

       

      echo -n "Type your key: "

      read PASSWORD

       

      # and

      twiddle -u MyUser -p ${PASSWORD}  na na na

       

      Thank you in advance

        • 1. How can I make twiddle be authenticated by jaas module?
          welle

          Look in:: $JBOSS_HOME/server/xxx/deploy/jmx-invoker-service.xml

           

          Activate the following entry:

           

             <interceptor code="org.jboss.jmx.connector.invoker.AuthenticationInterceptor" securityDomain="java:/jaas/jmx-console"/>

           

          Modify the specified securityDomain to match our own.