(No version information available, might be only in CVS)
GSSAPIContext::acceptSecContext — Accepts a GSSAPI context initiated by a remote party
Accepts a GSSAPI context initiated by a remote party. GSSAPIContext::acquireCredentials should first be used to select the correct credentials, otherwise the default credential cache and keytab will be used.
Token passed by the remote party.
Token to pass to the remote party.
Principal name of the authenticated remote party
Flags of the established GSSAPI context.
Time in seconds for which the context will stay valid.
The given credential cache will be reinitalized and filled using delegated credentials, if available.
Will return true if the context was established, false otherwise.
Example #1 GSSAPIContext::acceptSecContext() example
<?php
// assume $client is a KRB5CCache containing credentials for client@MYREALM
// assume $server is a KRB5CCache containing credentials for server@MYREALM (initialized using keytab)
$cgssapi = new GSSAPIContext();
$cgssapi->acquireCredentials($client);
$sgssapi = new GSSAPIContext();
$sgssapi->acquireCredentials($server);
$token = '';
$cgssapi->initSecContext("server@MYREALM", null, null, null, $token);
$token2 = '';
$remote = '';
$sgssapi->acceptSecContext($token, $token2, $remote);
echo $remote;
?>
The above example will output something similar to:
client@MYREALM