In article <[EMAIL PROTECTED]>,
 <[EMAIL PROTECTED]> wrote:
>Do to a slip of the script our kas database is very much behind our pts
>and passwd base.  How can I 'kas delete' 200 users with typing an admin
>password 200 times?

We frequently have to process a lot of commands via KAS.   What we have
been doing, is sourcing a command file like the following:


echo -n 'enter passwd for jfinke_a:'
stty -echo
read PASSWD
stty echo
kas -admin_user jfinke_a <<BLORT
$PASSWD
delete -name xxxxxxx
create -name yyyyyy -initial_password Top.Secret
...More kas commands...
quit
BLORT

This make more sense when you have more than 2 lines to execute.  However,
even this has problems.   (We are converting to calling subroutines, but
even there we have problems.)

Doing a lot of lines has a tendency to "overrun" KAS.  This problem seems to
have gotten worse as we got to newer versions of KAS.   Even using the
subroutine interface, we found that under AIX, we could process 500 commands
and then it would fail (due to number of forked processes).  This was not
a problem under SUNos.  (In our case, the command files are generated
by programs extracting information from an Oracle database.)

A fall back for a oneshot - is to go into interactive mode of KAS, and then
cut and paste in the commands, a screenful at a time.  (Gives KAS time
to catch up).
-- 
Jon Finke                              [EMAIL PROTECTED]
Senior Network Systems Engineer        [EMAIL PROTECTED]
Information Technology Services        518 276 8185 (voice)
Rensselaer Polytechnic Institute       518 276 2809 (fax)

Reply via email to