Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exldap.search_field/4 broken on erlang 24.3 #16

Open
StevenG74 opened this issue May 24, 2022 · 0 comments
Open

Exldap.search_field/4 broken on erlang 24.3 #16

StevenG74 opened this issue May 24, 2022 · 0 comments

Comments

@StevenG74
Copy link

StevenG74 commented May 24, 2022

Hello,

I recently updated to Erlang 24.3 on Unbuntu 21.10 and afterward Exldap.search_field/4 stopped working.

My erlang version:

erl -v

Erlang/OTP 24 [erts-12.3.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Eshell V12.3.1 (abort with ^G)

Here the steps to reproduce the issue:

{:ok, connection} = Exldap.connect
{:ok, #PID<0.2141.0>}

settings = Application.get_env :exldap, :settings
base = settings |> Keyword.get(:base)

Exldap.search_field(connection, base, "objectCategory", "CN=Person,CN=Schema,CN=Configuration,DC=corp,DC=idm,DC=bz,DC=it")

The output is:

...
...
{:eldap_entry,
'CN=Name Surname,OU=USERS,OU=ViaMacello,OU=IDM,DC=corp,DC=idm,DC=bz,DC=it',
[...]},
{:eldap_entry,
'CN=Booking_Parking_Free_223,OU=ViaMacello,OU=IDM,DC=corp,DC=idm,DC=bz,DC=it',
...},
{:eldap_entry, ...},
{...},
...
], [], :asn1_NOVALUE}

Attempted function clauses (showing 1 out of 1):

    def from_record({:eldap_search_result, entries, referrals})

(exldap 0.6.3) lib/exldap_search_result.ex:23: Exldap.SearchResult.from_record/1
(exldap 0.6.3) lib/exldap.ex:554: Exldap.search/2

Thank you in advance
Steven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant