Closed E-ThanG closed 2 weeks ago
@E-ThanG thank you for your contribution
I will need to apply these changes to type=AD as well.
@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.
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
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: https://github.com/inverse-inc/packetfence/issues/8088#issuecomment-2434450924