| Authen-Krb5-KDB documentation | Contained in the Authen-Krb5-KDB distribution. |
Authen::Krb5::KDB::V5 - objects for Kerberos V5 database V5 principals and policies
Generally you won't load this library or call it's new methods directly.
See Authen::Krb5::KDB for more information.
use Authen::Krb5::KDB::V5;
$p = Authen::Krb5::KDB::V5->new( data => "..." );
if ($p->type eq 'princ') {
print $p->name, ": ", $p->fail_auth_count"\n";
} elsif ($p->type eq 'policy') {
print $p->name, ": ", $p->policy_refcnt, "\n";
}
Parses version 5 principal and policy entries and returns the data via
an object. Calls either new_princ or new_policy depending on the data.
Arguments are:
data => <string>
Data to be parsed. This argument is required.
checks => <level>
Data checking level. Level 0 means no checks; level 1 (the default) does basic checks like checking that the lengths in the records are correct; level 2 does much further consistency checks on the data.
lineno => <N>
Line number of the data file where this data came from (for error messages).
Parses version 5 principal entries and returns the data via an object.
Arguments are:
data => <string>
Data to be parsed. This argument is required.
checks => <level>
Data checking level. Level 0 means no checks; level 1 (the default) does basic checks like checking that the lengths in the records are correct; level 2 does much further consistency checks on the data.
lineno => <N>
Line number of the data file where this data came from (for error messages).
Methods to retrieve and set data fields are:
See the Authen::Krb5::KDB::TL for methods to deal with TL objects.
See the Authen::Krb5::KDB::Key for methods to deal with Key objects.
Other methods include:
Print out the data on a principal, similar to the get_principal command in kadmin, but more verbose.
Return a string of all the attributes set for this principal.
Parses version 5 policy entries and returns the data via an object.
Arguments are:
data => <string>
Data to be parsed. This argument is required.
checks => <level>
Data checking level. Level 0 means no checks; level 1 (the default) does basic checks like checking that the lengths in the records are correct; level 2 does much further consistency checks on the data.
lineno => <N>
Line number of the data file where this data came from (for error messages).
Methods to retrieve and set policy data fields are:
Other methods include:
Print out the policy data, similar to the get_policy command in kadmin.
Dave Steiner, <steiner@bakerst.rutgers.edu>
Copyright (c) 2002 David K. Steiner. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl(1), kerberos(1), Authen::Krb5::KDB, Authen::Krb5::KDB_H, Authen::Krb5::KDB::TL, Authen::Krb5::KDB::Key.
| Authen-Krb5-KDB documentation | Contained in the Authen-Krb5-KDB distribution. |
package Authen::Krb5::KDB::V5; # $Id: V5.pm,v 1.8 2002/10/09 20:41:42 steiner Exp $ use Carp; use Authen::Krb5::KDB::V4; use strict; use vars qw($VERSION @ISA); @ISA = ( "Authen::Krb5::KDB::V4" ); $VERSION = do{my@r=q$Revision: 1.8 $=~/\d+/g;sprintf '%d.'.'%02d'x$#r,@r}; # Basic format of the data is the same as V4, just the encoded data # is different. 1; __END__