php - Laravel 4.1 w/ ccovey/ldap-auth -
php - Laravel 4.1 w/ ccovey/ldap-auth -
i've gone ahead , followed install instructions on https://github.com/ccovey/ldap-auth seek , ldap authentication laravel 4.1.
adldap.php
return array( 'account_suffix' => "@xxxxxxx.xxx.xxx", 'domain_controllers' => array("dc01.xxxxxxx.xxx.xxx"), 'base_dn' => 'dc=xxxxxxxx,dc=xxx,dc=xxx', );
now if leave adldap.php file above , run next route.php file
route::get('/', function() { $credentials = array( 'username' => 'username', 'password' => 'password' ); if($a = auth::attempt($credentials)) { homecoming '<pre>' . print_r(auth::user(), true); } else { dd($a); } });
i next output
bool(false)
which doesn't seem create sense because using right username/password. using same configuration in regards domain , dcs when running adsi mssql know works.
now, if alter adldap.php file include admin_username, admin_password next error in laravel.log
'bind active directory failed. either ldaps connection failed or login credentials incorrect. advertisement said: can't contact ldap server'
any suggestions? in advance.
you need set admin_username
, admin_password
, need create sure have right setting ssl/tsl effort guess targeted ad's settings automatically. beyond may have error base_dn
. can save lot of hassle using ldap client check settings much (something softerra's ldap browser).
php laravel ldap
Comments
Post a Comment