title: AS400 Telnet Emulator Auto Login
body: <p>I have a TN5250 emulator from sourceforge : <a href="http://sourceforge.net/projects/tn5250/" rel="nofollow">http://sourceforge.net/projects/tn5250/</a> and I am trying to enable automatic login via the instructions I found here : <a href="http://www.faqs.org/rfcs/rfc2877.html" rel="nofollow">http://www.faqs.org/rfcs/rfc2877.html</a></p>
  
  <p>The string that I am sending is basically the following (I am aware that this is being passed as cleartext and I am not sure if passing it encrypted is necessary):
  "\u0000USER\u0001"+user+"\u0003IBMRSEED\u0001\u0003IBMSUBSPW\u0001"+pass</p>
  
  <p>The method I call pads the beginning of the string with the following hex characters:
  FF FA 27 00 00</p>
  
  <p>The same method mentioned above also pads the end of the string with the following hex characters:
  FF F0</p>
  
  <p>FYI: I haven't been receiving a response from the server that says WONT NEW-ENVIRON</p>
  
  <p>Unfortunately I am not automatically logging into the AS400 and I don't know enough about the AS400 to know why. Thus the first question I would like to ask is how would I determine that this method is failing/working? </p>
  
  <p>The next question is: Is there anything that I am doing obviously wrong?</p>
  
  <p>Any other bits of criticism and advice is appreciated. </p>