mirror of
https://github.com/snipe/snipe-it.git
synced 2025-10-29 19:31:41 +00:00
Fixed RB-20430 - 500 on LDAP if baseDN is not set
This commit is contained in:
parent
19cb2089d7
commit
dcc82d742f
@ -220,7 +220,7 @@ class Ldap extends Model
|
||||
Log::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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user