LDAP Login Error on Config Format Change - EDIT
Hello,
When we try to sign in using 7.4 - instead of the sign-in page, we just get a 500 error.
Logs show the following:
ActionView::Template::Error (undefined local variable or method `provider' for #<#<Class:0x00000005b99790>:0x00000004e4bbb0>):
1: = form_tag(user_omniauth_callback_path(provider), id: 'new_ldap_user' ) do
2: = text_field_tag :username, nil, {class: "form-control top", placeholder: "LDAP Login", autofocus: "autofocus"}
3: = password_field_tag :password, nil, {class: "form-control bottom", placeholder: "Password"}
4: %br/
app/views/devise/sessions/_new_ldap.html.haml:1:in `_app_views_devise_sessions__new_ldap_html_haml__2354148892424314156_39962560'
app/views/devise/sessions/new.html.haml:20:in `_app_views_devise_sessions_new_html_haml___4367331346154162228_12397100'
app/controllers/sessions_controller.rb:25:in `new'
Users who are already signed in don't have a problem as long as their session stays valid.
I've updated the config file to be in the new format, it looks like it should be ok:
## LDAP settings
ldap:
enabled: true
servers:
main:
label: 'LDAP'
host: '10.175.15.1'
base: 'dc=hosting,dc=example,dc=net'
port: 636
uid: 'uid'
method: 'ssl' # "ssl" or "plain"
bind_dn: ''
password: ''
allow_username_or_email_login: true
user_filter: ''
active_directory: false
EDIT: Hijacked the ticket for the other bug that was discovered, see later comment.