[7314] in Kerberos

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

Re: No-prompt password input?

daemon@ATHENA.MIT.EDU (Gary Gaskell)
Mon May 20 02:59:34 1996

Date: Mon, 20 May 1996 16:45:24 +1000 (EST)
From: Gary Gaskell <gaskell@dstc.edu.au>
To: Dudley Atkinson <dudley@gr8brdg.net>
Cc: kerberos@MIT.EDU
In-Reply-To: <199605190427.AAA05072@vesuvius.gr8brdg.net>

On Sun, 19 May 1996, Dudley Atkinson wrote:

> New thread:  I want to be able to execute a shell script that can add 
> a new user with password to my database.  I don't think I can use 
> kdb5_edit this way as compiled, and I am getting segmentation faults 
> when i try to alter the code.  Has anyone done this before?
> 
> thanks.
> 

try a script that uses "here" documents.  Something like

for condition . . .
  do
#set up your vars 

 /usr/krb55/admin/kdb5_edit >/dev/null << xxxEOFxxx

#insert your commands to kdb5_edit (to add users, or host keys)
  quit
xxxEOFxxx
done


I used to do things manually until one of our smart admins wrote a short 
script to change the keys (host entries) for servers.  Of course be sure 
to explicitly specify each path.  Makes life easy.

regards


Gary Gaskell                         Cooperative Research Centre for
Research Scientist                   Distributed Systems Technology
DSTC                                 Ph:      61 7 3864 1051
Level 12, ITE Building               Fax:     61 7 3864 1282
Queensland University of Technology  Email:   gaskell@dstc.edu.au  
Brisbane, Australia.                 Ph (A/H) (07) 3857 7912
http://www.dstc.edu.au               Mobile:  (61) 0411 221 946
_________________________________________________________________


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