[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh-askpass | kinit



If you want something that will work with both Heimdal and MIT then  
you need to use a pty, like expect does.  IO::Pty in Perl also works,  
but it won't encourage you to think Perl is a nice language.

On Jul 8, 2006, at 7:24 AM, Love Hörnquist Åstrand wrote:

>
> Brian May <bam@snoopy.apana.org.au> writes:
>
>> Hello,
>>
>> Has anybody considered making it possible for kinit to get a password
>> from ssh-askpass?
>>
>> That way it would be simple to have a graphical front end for the
>> password prompt. e.g. with
>>
>> ssh-askpass "kerberos password" | kinit
>>
>> Unfortunately, kinit appears to bypass STDIN/STDOUT and read/write
>> directly to/from /dev/tty.
>
> In current heimdal there is an option --password-file that will  
> read the
> password from file, using the filename STDIN will read from stdin.
>
> $ kinit --help 2>&1 | grep ^--password-file
> --password-file=string                    read the password from a  
> file
>
>
> Love
------------------------------------------------------------------------ 
----
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu