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

Attempts to connect to an LDAP server fail with "LDAPSocketOpenError: invalid server address" on FreeBSD #31

Closed
andriy-s opened this issue Feb 28, 2015 · 3 comments

Comments

@andriy-s
Copy link

Any attempt to connect to an LDAP server fails with "LDAPSocketOpenError: invalid server address" on FreeBSD. This is because getaddrinfo(3) on FreeBSD does not accept AI_V4MAPPED flag as a hint, and fails with error code 3 ("Invalid value for ai_flags") if this flag is set. The following patch fixed (or worked around) the problem for me: https://gist.github.com/andriy-s/ac502e1d27ba4f19912d

@andriy-s
Copy link
Author

Hello and sorry for late reply.

As a followup to your comment at https://gist.github.com/andriy-s/ac502e1d27ba4f19912d,
I have tested your new implementation of the address_info property, and it appears to work fine for me.

Thanks,
Andriy.

@cannatag
Copy link
Owner

Good to know, I will include the fix in the next release.

Bye,
Giovanni

----- Messaggio originale -----
Da: "Andriy Syrovenko" notifications@github.com
Inviato: ‎11/‎03/‎2015 15:01
A: "cannatag/ldap3" ldap3@noreply.github.com
Oggetto: Re: [ldap3] Attempts to connect to an LDAP server fail with"LDAPSocketOpenError: invalid server address" on FreeBSD (#31)

Hello and sorry for late reply.
As a followup to your comment at https://gist.github.com/andriy-s/ac502e1d27ba4f19912d,
I have tested your new implementation of the address_info property, and it appears to work fine for me.
Thanks,
Andriy.

Reply to this email directly or view it on GitHub.

@cannatag
Copy link
Owner

cannatag commented Apr 5, 2015

Please check 0.9.8.1 version. It should fix the problem.

Bye,
Giovanni

@cannatag cannatag closed this as completed Apr 5, 2015
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

2 participants