Krb5Admin::Client - remotely manipulate a Kerberos DB
use Krb5Admin::Client;
my $kmdb = Krb5Admin::Client->new();
- new(PRINCIPAL, OPTS, KDC[, KDC, ...])
-
Creates a new "Krb5Admin::Client" object. If PRINCIPAL is defined, then Krb5Admin::Client will obtain client credentials for PRINCIPAL from the configured keytab before connecting to the KDC. If a list of KDCs are provided they will be contacted in order until one responds. If no list is provided, the KDCs will be discovered using the Kerberos libraries and will generally be defined either in DNS or in /etc/krb5.conf. OPTS is a hash reference which can contain:
- realm
-
the realm's KDC to contact. If this is not specified, the host's default realm is assumed.
- port
-
the port on the KDC to which to connect. This may be specified as either an integer or as a string which is looked up in the services map.
- stdin_protocol
-
this is a debugging option. If set to true, Krb5Admin::Client will run its protocol on stdin/stdout allowing a developer to simulate krb5_admind's behaviour.
All of the user-visible methods are inherited from Krb5Admin and are documented there as well.
Krb5Admin