|
Authen::Krb5::Easy - Simple Kerberos 5 interaction |
Authen::Krb5::Easy - Simple Kerberos 5 interaction
use Authen::Krb5::Easy qw{kinit kexpires kexpired kcheck kdestroy};
kinit("keytab", "someone") || die kerror();
# how long until the ticket expires? $time_left = kexpires();
# has the ticket expired?
if(kexpired())
{
print "expired!\n";
}
# check for expiration and get new ticket if expired
kcheck("keytab", "someone") || die kerror();
# destroy current ticket kdestroy();
This allows simple access to getting kerberos 5 ticket granting tickets using a keytab file.
All functions will need to be imported.
kdestroy()kerror()kexpires()kexpired()
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Copyright 2002 Ed Schaller
Ed Schaller schallee@darkmist.net
kerberos(1), kinit(1), kdestroy(1), klist(1), perl(1).
|
Authen::Krb5::Easy - Simple Kerberos 5 interaction |