#!/usr/bin/perl
use Authen::Krb5::Admin;
my $username = "userid";
my $password = "********";
my $krbConfig = Authen::Krb5::Admin::Config->new();
$service= "kadmin/admin";
$krbConfig->admin_server("****.****.****.****");
$krbConfig->realm("****.**");
my $kadm5 = Authen::Krb5::Admin->init_with_password($username,
$password,  $serv
ice, $krbConfig) || die "ERROR: ",Authen::Krb5::Admin::error;

So far in my script I'm only dealing with one realm. I'll deal with
adding the code for the other realm once I'm able to authenticate
against just one realm using the Config object to specify which realm
I'm connecting to.

[EMAIL PROTECTED] (Sam Hartman) wrote in message news:<[EMAIL PROTECTED]>...
> If you are going to use a different realm you need to also use a
> different admin principal.
> 
> ________________________________________________
> Kerberos mailing list           [EMAIL PROTECTED]
> https://mailman.mit.edu/mailman/listinfo/kerberos
________________________________________________
Kerberos mailing list           [EMAIL PROTECTED]
https://mailman.mit.edu/mailman/listinfo/kerberos

Reply via email to