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

Change useOpenLdap.js to case-insensitive attribute name indices #8366

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

E-ThanG
Copy link
Contributor

@E-ThanG E-ThanG commented Oct 26, 2024

Changed useOpenLdap.js to case-insensitive attribute name indices, set base_dn for getSubSchemaDN to null, and added explicit limits to sendLdapSearchRequest function calls.

Description

Fixes issue with case mismatch of subSchemaSubEntry, subSchema, and attributeTypes names on various LDAP servers. This resulted in AD LDAP and RedHat Directory389 LDAP (And probably others) not able to use LDAP Authentication Source conditions.

Impacts

AD LDAP and RedHat Directory389 schema download

Delete branch after merge

YES

Checklist

  • [ N/A] Document the feature
  • [ N/A] Add OpenAPI specification
  • [ N/A] Add unit tests
  • [N/A ] Add acceptance tests (TestLink)

Bug Fixes

Partially fixes #8088 "LDAP Conditions not working for LDAP authentication Source"
There's another unresolved bug that remains for that issue though. see: #8088 (comment)

Changed to case-insensitive attribute name indices, set base_dn for getSubSchemaDN to null, and added explicit limits to sendLdapSearchRequest function calls.
@CLAassistant
Copy link

CLAassistant commented Oct 26, 2024

CLA assistant check
All committers have signed the CLA.

@E-ThanG E-ThanG changed the title Update useOpenLdap.js Change useOpenLdap.js to case-insensitive attribute name indices Oct 26, 2024
@fdurand fdurand requested a review from satkunas October 29, 2024 14:21
@satkunas satkunas added this to the +1 (patch release) milestone Oct 30, 2024
@satkunas
Copy link
Contributor

satkunas commented Nov 6, 2024

@E-ThanG thank you for your contribution

I will need to apply these changes to type=AD as well.

@satkunas satkunas merged commit 32d97cc into inverse-inc:devel Nov 6, 2024
3 checks passed
@E-ThanG
Copy link
Contributor Author

E-ThanG commented Nov 6, 2024

@E-ThanG thank you for your contribution

I will need to apply these changes to type=AD as well.

I considered that, but in my testing AD wasn't case sensitive. In fact, the returned attribute case seemed to change depending on the case of my query. It certainly wouldn't hurt to also have it there though.

satkunas pushed a commit that referenced this pull request Nov 6, 2024
Changed to case-insensitive attribute name indices, set base_dn for getSubSchemaDN to null, and added explicit limits to sendLdapSearchRequest function calls.
satkunas pushed a commit that referenced this pull request Nov 6, 2024
Changed to case-insensitive attribute name indices, set base_dn for getSubSchemaDN to null, and added explicit limits to sendLdapSearchRequest function calls.
satkunas pushed a commit that referenced this pull request Nov 6, 2024
Changed to case-insensitive attribute name indices, set base_dn for getSubSchemaDN to null, and added explicit limits to sendLdapSearchRequest function calls.
satkunas pushed a commit that referenced this pull request Nov 6, 2024
Changed to case-insensitive attribute name indices, set base_dn for getSubSchemaDN to null, and added explicit limits to sendLdapSearchRequest function calls.
@E-ThanG E-ThanG deleted the LDAP-Conditions-fix-8088 branch January 3, 2025 00:09
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.

LDAP Conditions not working for LDAP authentication Source
3 participants