schoolit/adauth

此包已废弃,不再维护。作者建议使用schulit/adauth包。

Active Directory认证服务器客户端库

2.0.0 2023-01-02 15:27 UTC

This package is auto-updated.

Last update: 2023-01-02 15:54:01 UTC


README

使用此库可以方便地连接到Active Directory认证服务器

安装

$ composer require schulit/adauth

使用

use AdAuth;
use AdAuth\Credentials;
use AdAuth\Stream\TlsStream;

$tlsStream = new TlsStream('Pfad zum Zertifikat der verwendeten CA (oder null falls nicht vorhanden)', 'FQDN aus dem Zertifikat des Servers', 'Fingerprint des Zertifikats'); 

$adauth = new AdAuth('öffentliche IP des AD Auth Servers', $tlsStream, 55117 /* öffentliche Portnummer */);

$response = $adauth->authenticate(new Credentials('username', 'password'));
$response = $adauth->
$response = $adauth->ping();

Symfony集成

到Bundle

兼容性

此版本与服务器的2.0.0版本兼容。

许可证

MIT