Try to fix Unescaped char in CN at LDAP, by updating to ldapjs to 2.3.3 and adding escape.

Thanks to xUndero, mfilser, gramakri and xet7 !

Fixes #4754
This commit is contained in:
Lauri Ojansivu 2022-11-24 14:24:16 +02:00
parent 84057381f4
commit 743d9d2be8
3 changed files with 3583 additions and 2194 deletions

View file

@ -29,7 +29,7 @@ export default class LDAP {
User_Authentication : this.constructor.settings_get('LDAP_USER_AUTHENTICATION'),
User_Authentication_Field : this.constructor.settings_get('LDAP_USER_AUTHENTICATION_FIELD'),
User_Attributes : this.constructor.settings_get('LDAP_USER_ATTRIBUTES'),
User_Search_Filter : this.constructor.settings_get('LDAP_USER_SEARCH_FILTER'),
User_Search_Filter : escapedToHex(this.constructor.settings_get('LDAP_USER_SEARCH_FILTER')),
User_Search_Scope : this.constructor.settings_get('LDAP_USER_SEARCH_SCOPE'),
User_Search_Field : this.constructor.settings_get('LDAP_USER_SEARCH_FIELD'),
Search_Page_Size : this.constructor.settings_get('LDAP_SEARCH_PAGE_SIZE'),