mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
some code cleanup
This commit is contained in:
parent
fb98eb948d
commit
bc3450015a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user