KRB5CCache
PHP Manual

KRB5CCache::initPassword

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

KRB5CCache::initPasswordGets a TGT using a given password

Description

public void KRB5CCache::initPassword ( string $principal , string $password [, array $flags ] )

Gets a TGT using a given password. Please note that using passwords is not suitable for services needing to accept GSSAPI contexts as the service key is required but then not available to GSSAPI.

Parameters

principal

Name of principal to get TGT for.

password

Password to authenticate.

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->initPassword("test@MYREALM""test"$flags);
// if everything worked $ccache will now contain forwardable a TGT 
// for test@MYREALM with lifetime of one hour
?>


KRB5CCache
PHP Manual