I like to configure an PAM  sshd and using  jsch as client. 
I looked in to the session.java code .
Befeore calling ,               String[] 
_response=kbi.promptKeyboardInteractive(dest,
                                                               name,
                                                               instruction,
                                                               prompt,
                                                               echo);

it is populating the value of prompt and echo.

    if(command==SSH_MSG_USERAUTH_INFO_REQUEST){
      firsttime=false;
      buf.getInt(); buf.getByte(); buf.getByte();
      String name=new String(buf.getString());
      String instruction=new String(buf.getString());
      String languate_tag=new String(buf.getString());
      int num=buf.getInt();
      String[] prompt=new String[num];
      boolean[] echo=new boolean[num];
      for(int i=0; i<num; i++){
        prompt[i]=new String(buf.getString());
        echo[i]=(buf.getByte()!=0);
      }

I could not understand , where from these values getting populated .
 Is it PAM.conf ?  My feeling is that , these values comes from pam_XXX.so

is there any sample PAM code  , let's say which need three strings( "cat", 
dog", "me")   for authentication?

Throw some light please ?

Thanks
Partha


      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to