mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
allow to add additional authentication before ldap
This commit is contained in:
parent
d70a35a700
commit
ad3a3b2c52
|
@ -66,6 +66,8 @@ if($settings->_enableGuestLogin && (int) $settings->_guestID) {
|
|||
}
|
||||
}
|
||||
|
||||
$user = false;
|
||||
|
||||
//
|
||||
// LDAP Sign In
|
||||
//
|
||||
|
@ -74,8 +76,7 @@ if($settings->_enableGuestLogin && (int) $settings->_guestID) {
|
|||
* if authentication against ldap succeeds.
|
||||
* _ldapHost will only have a value if the ldap connector has been enabled
|
||||
*/
|
||||
$user = false;
|
||||
if (isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) {
|
||||
if (!$user && isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) {
|
||||
if (isset($settings->_ldapPort) && is_int($settings->_ldapPort)) {
|
||||
$ds = ldap_connect($settings->_ldapHost, $settings->_ldapPort);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user