Fixed issue #1114 - Configuration of LDAP with disabled anonymous bind fails.

This commit is contained in:
Thorsten Eckel 2017-05-31 13:36:25 +02:00
parent 118ed9d58b
commit 017022eae9
2 changed files with 21 additions and 11 deletions

View file

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

View file

@ -14,14 +14,23 @@ class Integration::LdapController < ApplicationController
attributes: ldap.preferences, attributes: ldap.preferences,
} }
rescue => e rescue => e
# workaround for issue #1114
if e.message.end_with?(', 48, Inappropriate Authentication')
result = {
result: 'ok',
attributes: {},
}
else
logger.error e logger.error e
result = {
render json: {
result: 'failed', result: 'failed',
message: e.message, message: e.message,
} }
end end
render json: result
end
def bind def bind
# create single instance so # create single instance so
# User and Group don't have to # User and Group don't have to