Authen::Krb5::KDB::Utils - utility functions for Kerberos V5 database modules


NAME

Authen::Krb5::KDB::Utils - utility functions for Kerberos V5 database modules


SYNOPSIS

    use Authen::Krb5::KDB::Utils;
    print strdate($principal->last_success()), "\n";
    if (check_length($principal->e_length, $principal->e_data) {
        carp "principal e_data length field not ok";
    }


DESCRIPTION

Generally this functions are only used internally within other KDB modules.

strdate( DATE )
Return localtime-format date in readable format similar to dates used in kadmin.

check_length( LENGTH, DATA )
Function to compare various length fields with their data counterparts. Returns true if the two values don't ``match'', false if they do ``match''. ``Matching'' is defined as follows: If the first value is 0, the second value must be -1, or the first value must be the length of the second.


AUTHOR

Dave Steiner, <steiner@bakerst.rutgers.edu>


COPYRIGHT

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.


SEE ALSO

perl(1), kerberos(1), Authen::Krb5::KDB, Authen::Krb5::KDB::V3.

 Authen::Krb5::KDB::Utils - utility functions for Kerberos V5 database modules