Skip to content

Commit cbca60a

Browse files
committed
Fix LDAP failures after Erlang changes to #eldap_search_result record.
An additional field was added by Erlang to the #eldap_search_result record to support paged search results. This caused a bad match, which was difficult to find because the bad match exception was being caught. erlang/otp#5538 Signed-off-by: Lincoln Baker <[email protected]>
1 parent 3c2cb7d commit cbca60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oc_erchef/apps/oc_chef_wm/src/oc_chef_wm_authn_ldap.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ find_and_authenticate_user(Session, User, Password, Config) ->
130130
end
131131
end.
132132

133-
search_result({ok, {eldap_search_result, Result, _}}) ->
133+
search_result({ok, {eldap_search_result, Result, _, _}}) ->
134134
{ok, Result};
135135
search_result({error, Reason}) ->
136136
%% An error response means some kind of failure occurred - no

0 commit comments

Comments
 (0)