mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Everything the LDAP module logged about what it sends and hears - the client and TLS options, the search options and base DN, the group filters, why an authentication failed - went to Meteor's Log.debug, which never prints when Meteor.isProduction. The snap and every bundle run in production, so turning on ldap-log-enabled showed none of it, and the search options printed as "[object Object]" in any case. They now go through the LDAP logger, which prints when LDAP_LOG_ENABLED is true and redacts secrets, as objects. A failed bind now logs the DN and the directory's own answer (Active Directory's "data 52e" and the like), never the password, before it is rethrown. Thanks to rholighaus and xet7 ! Fixes #6548.