Examples
PHP Manual

This simple example shows how to obtain a TGT for a given credential using a password.

Example #1 Initializing a credential cache

<?php
    $ccache 
= new KRB5CCache();
    
$flags = array('tkt_lifetime' => 3600);
    
$ccache->initPassword('principal@realm''password'$flags);
?>


Examples
PHP Manual