From: nullobsi Date: Tue, 1 Nov 2022 14:17:55 +0000 (+0000) Subject: Fix LDAP user registration (#229) X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cbc693f83213b389b4fb7c7d892deff8edc2da7d;p=akkoma Fix LDAP user registration (#229) 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. :) Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/229 Co-authored-by: nullobsi Co-committed-by: nullobsi --- diff --git a/lib/pleroma/web/auth/ldap_authenticator.ex b/lib/pleroma/web/auth/ldap_authenticator.ex index f77e8d203..ccf4b4104 100644 --- a/lib/pleroma/web/auth/ldap_authenticator.ex +++ b/lib/pleroma/web/auth/ldap_authenticator.ex @@ -102,7 +102,7 @@ defmodule Pleroma.Web.Auth.LDAPAuthenticator do {:scope, :eldap.wholeSubtree()}, {:timeout, @search_timeout} ]) do - {:ok, {:eldap_search_result, [{:eldap_entry, _, attributes}], _}} -> + {:ok, {:eldap_search_result, [{:eldap_entry, _, attributes}], _, _}} -> params = %{ name: name, nickname: name,