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

Check ldap_bind return code instead of relying on ldap_errno #209

Closed
coudot opened this issue Jun 13, 2018 · 1 comment
Closed

Check ldap_bind return code instead of relying on ldap_errno #209

coudot opened this issue Jun 13, 2018 · 1 comment
Assignees
Milestone

Comments

@coudot
Copy link
Member

coudot commented Jun 13, 2018

As it can be seen in the issue open on php.pnet, the ldap_errno is not filled if there was an error when calling ldap_bind: https://bugs.php.net/bug.php?id=76469

We have a PR #208 that is workaround by checking that parameters are strings, but this does not prevent another ldap_bind error.

We need to check ldap_bind return code before looking at ldap_errno.

@coudot
Copy link
Member Author

coudot commented Jun 13, 2018

Done. We will also apply #208 to enforce security

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

No branches or pull requests

1 participant