PHP code example of maenbn / ldaplookup
1. Go to this page and download the library: Download maenbn/ldaplookup library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
maenbn / ldaplookup example snippets
//Find the user with the test123 username
LdapLookup::getByUid('test123'); // will return an array
LdapLookup::runSearch('mail=test*','first'); // will return first entry
LdapLookup::runSearch('mail=test*'); // will return all entries
'LdapLookup' => 'Maenbn\LdapLookup\Facades\LdapLookup'
bash
$ php artisan vendor:publish