Skip to content

Fall back if string cannot be encoded #41

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

Merged
merged 1 commit into from
Aug 28, 2012
Merged

Fall back if string cannot be encoded #41

merged 1 commit into from
Aug 28, 2012

Conversation

justcfx2u
Copy link
Contributor

This patch makes searching for "(objectclass=user)" on my ActiveDirectory behave itself. Something in the LDAP directory was failing terribly, which was allowing searches by "(cn=[a-z]*)", but would fail on a filter for "(objectclass=user)".

This quick'n'dirty patch resolved my issue.

I use it in combination with Pull Request 33 (#33).

@shanepinnell
Copy link

Worked for me...

RoryO pushed a commit that referenced this pull request Aug 28, 2012
Fall back if string cannot be encoded
@RoryO RoryO merged commit ccd7b6d into ruby-ldap:master Aug 28, 2012
@chuckbjones chuckbjones mentioned this pull request Dec 5, 2012
satoryu pushed a commit to satoryu/ruby-net-ldap that referenced this pull request Mar 13, 2013
1. String#encode should not fail if given an invalid code like '\x81'
This is because this problem has been resolved by ruby-ldap#41.

2. Net::LDAP#search should return a boolean if return_result is false.
astratto pushed a commit to astratto/ruby-net-ldap that referenced this pull request Dec 18, 2015
Fall back if string cannot be encoded
astratto pushed a commit to astratto/ruby-net-ldap that referenced this pull request Dec 18, 2015
1. String#encode should not fail if given an invalid code like '\x81'
This is because this problem has been resolved by ruby-ldap#41.

2. Net::LDAP#search should return a boolean if return_result is false.
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.

4 participants