A little work with SWIG should yield a Perl module to access the kadm5 library directly. There is such a thing already for Heimdal's kadm5 library, but the MIT/Heimdal APIs are different enough that that module won't work with MIT krb5.
In the meantime, it really sucks that there's nothing better than parsing the output of kadmin to see if an operation succeeded or not. But it's all there is. Nico On Mon, Nov 19, 2001 at 12:00:01PM +0000, Paul Johnson wrote: > We are using a combination of Linux and FreeBSD here. We use Kerberos 5 > for authentication and cfengine to distribute a global /etc/passwd file. > > I want to write an add-user script which handles our particular set-up, so > that it prompts the user to enter Unix ID, user name and so on, and then > creates the relevant Kerberos principle and entry in our /etc/passwd file. > > 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. Presumably its being careful about only > reading it from a terminal (sensible). So how do I do this? Is there a > way? Or am I just going to have to write a HOWTO instruction list telling > the administrator to type in the kadmin runes? > > Thanks in advance, > > Paul. -- -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.
