gubler / ad-search-bundle
Active Directory search for Symfony
Installs: 231
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- ext-json: *
- ext-ldap: *
- symfony/console: ^6.2|^7.0
- symfony/http-kernel: ^6.2|^7.0
- symfony/ldap: ^6.2|^7.0
- symfony/uid: ^6.2|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-symfony: ^1.3
- phpunit/phpunit: ^9.6
- symfony/var-dumper: ^6.2|^7.4
- tomasvotruba/type-coverage: *
- dev-master
- v6.0.1
- v6.0.0
- v5.1.1
- v5.1.0
- v5.0.1
- v5.0.0
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.0.0
- v2.0.2
- v2.0.1
- v1.3.0
- v1.2.0
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- v0.5.1
- v0.5.0
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.1
- v0.1.0
- dev-4-secure
- dev-develop
This package is auto-updated.
Last update: 2024-10-29 14:59:59 UTC
README
This is a Symfony 6 bundle to make searching Active Directory (or other LDAP directories) easier.
DO NOT USE THE 1.3 Release, it is very broken.
Usage
For full usage documentation, see the documentation.
Example
public function __construct(private ADSearchService $adSearch) { } public function search () { // find all that match a search term $arrayOfUsers = $this->adSearch->search('name'); // find one by GUID $guid = Uuid::fromString('192D7590-6036-4358-9239-BEA350285CA2'); $singleUser = $this->adSearch->find($guid); // find one by search term $singleUser = $this->adSearch->findBy('samaccountname', 'User'); }
Installation
Full details are in the installation documentation.
Installation with composer:
composer require gubler/ad-search-bundle
Configuration
Configuration details are in the configuration documentation.