Fixes #1092, setting LDAP_OPT_REFERRALS to 0 for Active Directory

This commit is contained in:
snipe
2015-08-20 15:54:42 -07:00
parent 70f7f65394
commit e916fdcc89
3 changed files with 19 additions and 13 deletions
@@ -1085,6 +1085,10 @@ class UsersController extends AdminController {
// Connect to LDAP server
$ldapconn = @ldap_connect($url);
// Needed for AD
ldap_set_option($ldapconn, LDAP_OPT_REFERRALS, 0);
if (!$ldapconn) {
return Redirect::route('users')->with('error', Lang::get('admin/users/message.error.ldap_could_not_connect'));
}