Fix LDAP user registration #229

Merged
floatingghost merged 1 commits from nullobsi/akkoma:fix-ldap into develop 2022-11-01 14:17:56 +00:00
Contributor

Simple fix for LDAP user registration. I'm not sure what changed but I managed to get Akkoma running in a debug session and figured out it was missing a match for an extra value at the end. I don't know Elixir all that well so I'm not sure if this was the correct way to do it... but it works. :)

Simple fix for LDAP user registration. I'm not sure what changed but I managed to get Akkoma running in a debug session and figured out it was missing a match for an extra value at the end. I don't know Elixir all that well so I'm not sure if this was the correct way to do it... but it works. :)
nullobsi added 1 commit 2022-10-13 06:25:56 +00:00

ah right, this apparently was a breaking change in erlang OTP 24.3

your fix is correct, thanks!

but unfortunately there is a test that needs updating - https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/test/pleroma/web/o_auth/ldap_authorization_test.exs#L74

you should just be able to change it to

  {:ok, {:eldap_search_result, [{:eldap_entry, '', []}], [], []}}

to make it pass

ah right, this apparently was a breaking change in erlang OTP 24.3 your fix is correct, thanks! but unfortunately there is a test that needs updating - https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/test/pleroma/web/o_auth/ldap_authorization_test.exs#L74 you should just be able to change it to ``` {:ok, {:eldap_search_result, [{:eldap_entry, '', []}], [], []}} ``` to make it pass

given by the lack of reply here i'll guess you didn't see this, i'll apply the patch before fixing the test

thanks~

given by the lack of reply here i'll guess you didn't see this, i'll apply the patch before fixing the test thanks~
floatingghost merged commit cbc693f832 into develop 2022-11-01 14:17:56 +00:00
Sign in to join this conversation.
No description provided.