Skip to content

Commit

Permalink
Fixes #1151 - additional LDAP option
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Sep 9, 2015
1 parent 29d5682 commit 680b189
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/config/version.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
'app_version' => 'v2.0-89',
'hash_version' => 'v2.0-89-gd1fc48d',
'app_version' => 'v2.0-90',
'hash_version' => 'v2.0-90-g32604f0',
);
2 changes: 2 additions & 0 deletions app/controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ function ldap($username, $password) {
$ldappass = Config::get('ldap.password');
$baseDn = Config::get('ldap.basedn');
$filterQuery = Config::get('ldap.authentication.filter.query') . $username;
$ldapversion = Config::get('ldap.version');

// Connecting to LDAP
$connection = ldap_connect($ldaphost) or die("Could not connect to {$ldaphost}");
// Needed for AD
ldap_set_option($connection, LDAP_OPT_REFERRALS, 0);
ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION,$ldapversion);

try {
if ($connection) {
Expand Down

0 comments on commit 680b189

Please sign in to comment.