Merge pull request #1822 from sscholl/develop

Check for LDAP `namingcontexts` before calling it (fixes #1814)
This commit is contained in:
Ryan Lue 2018-04-25 17:54:33 +08:00 committed by GitHub
commit 856666db63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -294,7 +294,7 @@ class ConnectionWizard extends App.WizardModal
option = ''
options = {}
if !_.isEmpty data.attributes
if !_.isEmpty data.attributes && !_.isEmpty data.attributes.namingcontexts
for dn in data.attributes.namingcontexts
options[dn] = dn
if option is ''