keyboard-interactive

Nicolas Williams Nicolas.Williams at ubsw.com
Fri Jan 11 01:15:50 EST 2002


On Thu, Jan 10, 2002 at 02:50:03PM +0100, Markus Friedl wrote:
> On Thu, Jan 10, 2002 at 08:23:41AM -0500, Nicolas Williams wrote:
> > Bingo. Make the mainloop reentrant.
> 
> yes, this uglyness is currently used:
> 
>     dispatch_run()
> 	input_userauth_request()
> 	    userauth_kbdint()
> 		auth2_pam()
> 		    pam_authenticate()
> 			do_pam_conversation_kbd_int()
> 			    dispatch_run()

I don't think that's ugly... It would be easier if all PAM
implementations supported PAM_CONV_AGAIN/PAM_INCOMPLETE/pam_*()
restarts though.

> now we receive a USERAUTH_REQUEST(pubkey) and should
> call input_userauth_request()......

Well, if that implies that kbd-interact cannot proceed, then
dispatch_run() can return to do_pam_conversation_kbd_int() and so on
back to the top-level dispatch_run().

But if kbd-interact messages can be interleaved with others, then I fail
to see any other way to make this work.

Nico
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the openssh-unix-dev mailing list