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

Referral chasing crash #51

Merged
merged 1 commit into from
Jul 14, 2019
Merged

Referral chasing crash #51

merged 1 commit into from
Jul 14, 2019

Conversation

yarochewsky
Copy link

Since a client can disable referral chasing - and it is very likely that they do in ldap3, otherwise anonymous binding could invalidate the query [(https://www.python-ldap.org/en/latest/faq.html), we should check if search_s from the python ldap library returns a list or a dictionary. In case the client in fact disabled chasing, search_s will return a list of referrals, and not the expected dict, so parsing it for all cases throws an attribute error on trying to access 'items()' on a list.

@alexferl alexferl merged commit d37a618 into alexferl:master Jul 14, 2019
alexferl added a commit that referenced this pull request Jul 16, 2019
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

Successfully merging this pull request may close these issues.

2 participants