mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
allow saving/loading of kerberos tickets
This commit is contained in:
parent
f944fae8b1
commit
a103d9d79e
7 changed files with 186 additions and 89 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Icewind\SMB\KerberosTicket;
|
||||
|
||||
require('vendor/autoload.php');
|
||||
|
||||
if (php_sapi_name() == "cli") {
|
||||
|
|
@ -10,7 +12,8 @@ if (php_sapi_name() == "cli") {
|
|||
$host = 'krb.domain.test';
|
||||
$share = 'netlogon';
|
||||
|
||||
$auth = new \Icewind\SMB\KerberosApacheAuth();
|
||||
$auth = new \Icewind\SMB\KerberosAuth();
|
||||
$auth->setTicket(KerberosTicket::fromEnv());
|
||||
$serverFactory = new \Icewind\SMB\ServerFactory();
|
||||
|
||||
$server = $serverFactory->createServer($host, $auth);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue