A free open source IT asset/license management system
Fixed RB-20430 - 500 on LDAP if baseDN is not set
snipedcc82d742f4e
diff --git a/app/Models/Ldap.php b/app/Models/Ldap.phpindex e583cbf6a2..c539b21481 100644--- a/app/Models/Ldap.php+++ b/app/Models/Ldap.php@@ -220,7 +220,7 @@ class Ldap extends ModelLog::debug('Filter query: '.$filterQuery);// only try this if we have an Admin username set; otherwise use the 'legacy' method- if ($settings->ldap_uname) {+ if (($settings->ldap_uname) && ($baseDn)) {// in the fallowing call, we pick a slow-failure of 0 because we might need to fall through to 'legacy'$fast_bind = self::findAndBindMultiOU($baseDn, $filterQuery, $password, 0);if ($fast_bind) {