Sorry Sandy,
I don't understand your question. Now, I just got back from vacation in Mexico so perhaps the sun has fried my brain
Are you writting a telnet application that will validate users against JAAS, or are you trying to test your JAAS login module using telnet?
From what I understand, the LoginModule impl will live in your application server, say WebSphere, and you will connect to it from your client using the code posted above. Of course, if you are not using WAS, you need to find an example for your particular env.
If you're simply trying to test your JAAS LoginModule impl, I would write a
JUnit test that excercises your module, I don't see how telnet would fit in since the transport is specific to your env (i.e., WAS runs over IIOP).
Now, on my vacation I did read a great
Struts book that showed you how to connect to your app server via telnet s.t. you could see the data traffic between a browser and a
servlet. Is this similar to what yoy are trying?
--Dave.