schulit/adauth

Active Directory身份验证服务客户端库

2.0.0 2023-01-02 15:27 UTC

This package is auto-updated.

Last update: 2024-08-30 01:32:44 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