A free open source IT asset/license management system
Updating LDAP such that each user is not required to be bindable to LDAP (#6571)
fanta889749073742b5e0
diff --git a/app/Models/Ldap.php b/app/Models/Ldap.phpindex 708e4bdeb2..593e5eee96 100644--- a/app/Models/Ldap.php+++ b/app/Models/Ldap.php@@ -96,8 +96,11 @@ class Ldap extends Model$filterQuery = $settings->ldap_auth_filter_query . $username;+if (!$ldapbind = @ldap_bind($connection, $userDn, $password)) {- return false;+ if(!$ldapbind = Ldap::bindAdminToLdap($connection)){+ return false;+ }}if (!$results = ldap_search($connection, $baseDn, $filterQuery)) {