KRB5CCache
PHP Manual

KRB5CCache::save

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

KRB5CCache::saveCopies the contents of the credential cache to another one

Description

public void KRB5CCache::save ( string $destination )

Copies the contents of the credential cache to another one. Please note that only the credentials currently available will be stored, so you will have to save the credential cache after service credentials are obtained through e.g. GSSAPI.

Parameters

destination

Identifier of the destination credential cache (e.g. FILE:/some/path/to/ccache)

Examples

Example #1 KRB5CCache::open() example

<?php
$ccache 
= new KRB5CCache();
$ccache->initPassword('test@MYREALM''test');
$ccache->save('FILE:/tmp/my.ccache');

$ccache2 = new KRB5CCache();
$ccache2->open('FILE:/tmp/my.ccache');
// $ccache2 will now contain the TGT for test@MYREALM
?>


KRB5CCache
PHP Manual