(No version information available, might be only in CVS)
GSSAPIContext::acquireCredentials — Obtains credentials for establishing a GSSAPI context
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.
Credential cache to fetch credentials from.
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', null, null, null, $token);
// the context will be initiated as test@MYREALM
?>