You can also use ktutil to create a keytab and keytab entry for an
admin  principal using its password, then use

kadmin -k -t <keytab> -p <admin_principal> -q "<kadmin command>"

It would be nice if kadmin took multiple command arguments. That's a
trivial patch, probably.

It would be nicer if there were a Perl or Tcl module (I think there's
some bits of a Tcl interface in the test code already, in
src/kadmin/testing and src/lib/kadm5/unit-test/ -- hmmm, maybe it's
complete enough...).

Nico


On Mon, Nov 19, 2001 at 04:47:32PM -0500, Dan Riley wrote:
> Paul Johnson <[EMAIL PROTECTED]> writes:
> > This would seem to mean calling kadmin and getting the administrator
> > to authenticate.  But I can't get it to work.  kadmin seems not to
> > be reading the admin password from stdin.
> 
> You can use kinit to create an appropriate credentials cache and feed
> that to kadmin--something like:
> 
>     until kinit -c /tmp/krb5cc_admin$$ -S kadmin/admin ${USER}/admin
>     do
>         echo password incorrect
>     done
>     kadmin -c /tmp/krb5cc_admin$$ <<EOF
> ...
> EOF
>     rm -f /tmp/krb5cc_admin$$
> 
> -- 
> Dan Riley                                         [EMAIL PROTECTED]
>  "Mr. Ellison is presently the sole member of the Plan Committee.  The
>   Plan Committee did not meet during fiscal year 2001, and during that
>        same period, acted 46 times by unanimous written consent."
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

Reply via email to