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

Re: how to kinit without entering password from keyboard?

On Fri, 14 Nov 2003, Sujeevan Rasaratnam wrote:

> Is it posible to pass the password in the command line (not from a 
> keyboard). I'm making a perl script, it should call the "system" 
> function to execute the command to authenticate a principal. I tried 
> "echo my_passsword | kinit -f my_principal" and "kinit -f my_principal < 
> my_password_in_a_file.txt", they dont work.
> heimdal 0.4e
> redhat9 (x86)
> Thanks
> -- 
> Sujeevan Rasaratnam
> Alcatel Canada - R&I - Security group

Well, besides the security issues of embedding a password in a script, if
you're stuck on Perl try the Expect.pm module.