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