Fixed issue #1114 - Configuration of LDAP with disabled anonymous bind fails.
This commit is contained in:
parent
118ed9d58b
commit
017022eae9
2 changed files with 21 additions and 11 deletions
|
@ -287,6 +287,7 @@ class ConnectionWizard extends App.WizardModal
|
|||
|
||||
option = ''
|
||||
options = {}
|
||||
if !_.isEmpty data.attributes
|
||||
for dn in data.attributes.namingcontexts
|
||||
options[dn] = dn
|
||||
if option is ''
|
||||
|
|
|
@ -14,14 +14,23 @@ class Integration::LdapController < ApplicationController
|
|||
attributes: ldap.preferences,
|
||||
}
|
||||
rescue => e
|
||||
# workaround for issue #1114
|
||||
if e.message.end_with?(', 48, Inappropriate Authentication')
|
||||
result = {
|
||||
result: 'ok',
|
||||
attributes: {},
|
||||
}
|
||||
else
|
||||
logger.error e
|
||||
|
||||
render json: {
|
||||
result = {
|
||||
result: 'failed',
|
||||
message: e.message,
|
||||
}
|
||||
end
|
||||
|
||||
render json: result
|
||||
end
|
||||
|
||||
def bind
|
||||
# create single instance so
|
||||
# User and Group don't have to
|
||||
|
|
Loading…
Reference in a new issue