[1789] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Kerberos 5 Beta 5 and automating ank command

daemon@ATHENA.MIT.EDU (James D. Pflugfelder)
Wed Jan 24 14:38:21 1996

Date: Wed, 24 Jan 1996 14:38:05 -0800 (PST)
From: "James D. Pflugfelder" <jpflug@ashland.edu>
To: krb5-bugs@MIT.EDU

Hopefully this email is headed in the right direction, the docs said this 
was the address for bug reports and comments.  I was wondering (and 
suggesting) about the future option to automate adding new keys from a 
script.  Currently kdb5_edit does not allow me to call it from a script 
to add a new key, or pipe the commands to it.  What we're looking to do 
is send commands like...

ank username
password
password
quit

to kdb5_edit but, understandably, kdb5_edit is looking for a terminal not 
a pipe.  I've looked at the source and attempted to bypass this code that 
doesn't like the pipe input, but I've been unable to locate it, or at 
least make the changes to the code effective.  I'm not an experienced C 
programmer, but know enough to get around somewhat.  It looked like the 
kdb5_edit.c file was referencing the procedure kdb5_read_password, which 
I only found defined in the src/lib/krb5/os directory in the 
read_passwd.c file.  However, when I made changes to the read_passwd.c 
file, nothing seemed to take effect.

Hopefully this is sent to the right folks.  Sincere apologies if not.  If 
it is, however (at least for the comment), and you have some quick advice 
as to what I'm doing wrong in trying to modify the code, your help would 
be very beneficial.  Thanks in advance.

James D. Pflugfelder |  Office:    419-289-5886
Network Analyst      |  Fax:       419-289-5882
Ashland University   |  Internet:  jpflug@ashland.edu

home help back first fref pref prev next nref lref last post