(No version information available, might be only in CVS)
KRB5CCache::initKeytab — Gets a TGT using a key given in a keytable file
Gets a TGT using a key given in a keytable file
Name of principal to get TGT for.
Path to keytable file which contains a suitable key for $principal
Associative array of Ticket flags.
flag | type | description |
---|---|---|
forwardable | bool | Try to get a forwardable TGT |
proxiable | bool | Try to get a proxiable TGT |
tkt_life | integer | Lifetime of TGT in seconds |
renew_life | integer | Renewable lifetime of TGT in seconds |
Example #1 KRB5CCache::initPassword() example
<?php
$ccache = new KRB5CCache();
$flags = array(
"forwardable" => true,
"tkt_life" => 60 * 60
);
$ccache->initKeytab("test@MYREALM", "/path/to/test-myrealm.keytab", $flags);
// if everything worked $ccache will now contain forwardable a TGT
// for test@MYREALM with lifetime of one hour
?>