password applet parameter handling in 3.1.2

Per Allansson per at appgate.com
Fri Mar 23 15:18:41 MET 2007


Yes, this is broken in 3.1.1 and 3.1.2 - and will be fixed in the
next release. Until then you modify the SSHInteractive class to
look like this:

               case AUTH_PASSWORD:
                     String pass = getProperty("password");
                     if (isFirstPasswdAuth) {
                         isFirstPasswdAuth = false;
                     } else {
                         propsHandler.eraseProperty("password");
                         pass = null;
                     }
                     String p = getProperty("username") + "@" +
                         getProperty("server") + "'s password: ";

                     authenticator.addModule(new SSH2AuthPassword(this, p, pass));
                     pass = null;
                     break;


Mado BURGHI wrote:
> Hi,
> I have the same problem with the password (in an php applet) with the 
> version 3.1.1 and 3.1.2 that the user said in the message I copied 
> below. Have you found any solution?
> Here you are the source code of my applet:
>  print'  <APPLET CODE="com.mindbright.application.MindTerm.class"
>                ARCHIVE="Signedmindterm.jar" WIDTH=0 HEIGHT=0>
>                <PARAM NAME="cabinets" VALUE="mindterm.cab">
>                <PARAM NAME="sepframe" value="true">
>                <PARAM NAME="debug" value="false">';
>        print'  <PARAM NAME ="protocol" value="ssh2">';
>        print " <PARAM NAME =\"server\" value=\"$machine\">";
>        print " <PARAM NAME=\"port\" value=\"$port\">";
>        print " <PARAM NAME=\"username\" value=\"$login\">";
>        print " <PARAM NAME=\"auth-method\" value=\"password\">";
>        print " <PARAM NAME=\"password\" value=\"$password\">";
>        print " <PARAM NAME=\"quiet\" value=\"true\">";
>        print " <PARAM NAME=\"autoprops\" value=\"both\">";
>        print " <PARAM NAME=\"term-type\" value=\"vt100\">";
>        print " <PARAM NAME=\"force-pty\" value=\"true\">";
>                </APPLET>";
> 
> Thanks for your answer.
> 
> Best regards,
> 


More information about the Mindterm-users mailing list