KRB5CCache
PHP Manual

KRB5CCache::initKeytab

(No version information available, might be only in CVS)

KRB5CCache::initKeytabGets a TGT using a key given in a keytable file

Description

public void KRB5CCache::initKeytab ( string $principal , string $keytab [, array $flags ] )

Gets a TGT using a key given in a keytable file

Parameters

principal

Name of principal to get TGT for.

keytab

Path to keytable file which contains a suitable key for $principal

flags

Associative array of Ticket flags.

Usable 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

Examples

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
?>


KRB5CCache
PHP Manual