[5668] in Kerberos
Re: Util to mass create users
daemon@ATHENA.MIT.EDU (Joe Beiter)
Fri Aug 11 09:11:24 1995
To: kerberos@MIT.EDU
Date: 11 Aug 1995 08:54:17 -0400
From: jwb@wilbur.hhisland.com (Joe Beiter)
In article <40favs$6le@saturn.exodus.net>,
Steve Birnbaum <sbirn@david.jer1.co.il> wrote:
>Seeing as kadmin requires that input be from the tty and can't be
>run from a script, are there any utilities available to mass create
>1400 new users and assign initial passwords?
>
One thing I don't understand (I would like to do what you are asking too).
It appears from the kadmin.8 man page that you should be able to do this.
From the man page:
"Normally, the kadmin program does not use or disturb your current Kerberos
tickets. If you run it with -t, it will instead use any `user.admin@REALM'
ticket that it finds in the current ticket cache, and if it must prompt you
for your password in order to get such a ticket, it will leave it in the
current ticket cache so that subsequent executions of kadmin will not
prompt you. This is useful if you want to run kadmin non-interactively:
you can first run kinit user.admin@REALM to get a ticket, then run kadmin
without interaction (as part of a batch procedure or shell script) until
that ticket expires or is destroyed by kdestroy"
Am I reading this wrong or is this telling us that we should be able to make
a script to load users into the kerberos database? Or is it inaccurate?
If not does anyone know how to do this? Feeding kadmin "ank" commands does
not seem to work (through a script).
(this is from version 4 BTW)
--
|:=-@-=:|------|:=-@-=:|------|:=-@-=:|------|:=-@-=:|
Joe Beiter Hargray Telephone Company
jwb@hargray.com
My views may not reflect the views and policies of Hargray Telephone Company.