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

    How can I make twiddle be authenticated by jaas module?

    Douglas Souza Newbie

      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