GSSAPIContext
PHP Manual

GSSAPIContext::acquireCredentials

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

GSSAPIContext::acquireCredentialsObtains credentials for establishing a GSSAPI context

Description

public void GSSAPIContext::acquireCredentials ( KRB5CCache $ccache )

Obtains credentials for establishing a GSSAPI context. If the credentials shall be used for accepting a GSSAPI context, the given credential cache must be initialized with a keytab, as access to the service key ist required.

Parameters

ccache

Credential cache to fetch credentials from.

Examples

Example #1 GSSAPIContext::acquireCredentials() example

<?php
$ccache 
= new KRB5CCache();
$ccache->initPassword('test@MYREALM''test');

$gssapi = new GSSAPIContext();
$gssapi->acquireCredentials($ccache);

$token '';
$gssapi->initSecContext('server@MYREALM'nullnullnull$token);
// the context will be initiated as test@MYREALM
?>

See Also


GSSAPIContext
PHP Manual