Reverting back to or die

This commit is contained in:
snipe 2016-07-11 18:25:29 -07:00
parent 7a4cbce460
commit c8351ae01b

View file

@ -89,7 +89,7 @@ class AuthController extends Controller
}
// Connecting to LDAP
$connection = ldap_connect($ldaphost) || die("Could not connect to {$ldaphost}");
$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);