PHP code example of cirkut / ldap-connector
1. Go to this page and download the library: Download cirkut/ldap-connector 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/ */
cirkut / ldap-connector example snippets
'driver' => 'ldap',
return array(
'account_suffix'=> "@domain.local",
'domain_controllers'=> array("192.168.0.1", "dc02.domain.local"), // Load balancing domain controllers
'base_dn' => 'DC=domain,DC=local',
);
if (Auth::attempt(array('username' => $email, 'password' => $password)))
{
return Redirect::intended('dashboard');
}