some code cleanup

This commit is contained in:
Uwe Steinmann 2016-04-04 09:00:08 +02:00
parent fb98eb948d
commit bc3450015a

View File

@ -65,8 +65,6 @@ if($settings->_enableGuestLogin && (int) $settings->_guestID) {
}
}
$user = false;
//
// LDAP Sign In
//
@ -75,6 +73,8 @@ $user = false;
* if authentication against ldap succeeds.
* _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->_ldapPort) && is_int($settings->_ldapPort)) {
$ds = ldap_connect($settings->_ldapHost, $settings->_ldapPort);