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

Get(Raw)AttributeValues should compare attributes case insensitive #109

Closed
vetinari opened this issue Mar 19, 2017 · 1 comment · Fixed by #111
Closed

Get(Raw)AttributeValues should compare attributes case insensitive #109

vetinari opened this issue Mar 19, 2017 · 1 comment · Fixed by #111

Comments

@vetinari
Copy link
Contributor

Currently it matches exactly, but with user input in mixed cases, the attributes are not found, e.g. when called with "objectclass" while "objectClass" is present, an empty list is returned.

vetinari added a commit to vetinari/ldap that referenced this issue May 4, 2017
This is the same way an LDAP server compares during a search request.

Fixes go-ldap#109
@johnweldon
Copy link
Member

Related to #129 also.

vetinari added a commit to vetinari/ldap that referenced this issue Jun 7, 2018
these are the case insensitive counter parts, e.g.
  GetAttributeValue <=> GetEqualFoldAttributeValue
using strings.EqualFold to compare the attrribute names

fixes go-ldap#109 go-ldap#129
johnweldon added a commit that referenced this issue Jun 11, 2020
these are the case insensitive counter parts, e.g.
  GetAttributeValue <=> GetEqualFoldAttributeValue
using strings.EqualFold to compare the attrribute names

fixes #109 #129

Co-authored-by: John Weldon <johnweldon4@gmail.com>
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 a pull request may close this issue.

2 participants