allow to add additional authentication before ldap

This commit is contained in:
Uwe Steinmann 2015-06-10 08:24:00 +02:00
parent d70a35a700
commit ad3a3b2c52

View File

@ -66,6 +66,8 @@ if($settings->_enableGuestLogin && (int) $settings->_guestID) {
} }
} }
$user = false;
// //
// LDAP Sign In // LDAP Sign In
// //
@ -74,8 +76,7 @@ if($settings->_enableGuestLogin && (int) $settings->_guestID) {
* if authentication against ldap succeeds. * if authentication against ldap succeeds.
* _ldapHost will only have a value if the ldap connector has been enabled * _ldapHost will only have a value if the ldap connector has been enabled
*/ */
$user = false; if (!$user && isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) {
if (isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) {
if (isset($settings->_ldapPort) && is_int($settings->_ldapPort)) { if (isset($settings->_ldapPort) && is_int($settings->_ldapPort)) {
$ds = ldap_connect($settings->_ldapHost, $settings->_ldapPort); $ds = ldap_connect($settings->_ldapHost, $settings->_ldapPort);
} else { } else {