Commit Graph
4 Commits
Author SHA1 Message Date
Lauri Ojansivu 66925f0bde Show LDAP diagnostics in production when LDAP logging is on.
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.
2026-10-02 17:18:23 +03:00
Lauri Ojansivu 679a8b3499 Reject LDAP empty credentials, enforce directory groups and prevent SAML replay
Audit authentication boundaries following GHSA-m87f-f43w-hwmc. Guard both LDAP user-bind paths and the DDP/REST entry point, preserve service-account group lookup, compare CAS groups literally, and require single-use SAML request correlation. Add positive, negative, protocol and browser regressions with Problems summaries.

Thanks to kta1kri and xet7 !
2026-09-27 16:49:39 +03:00
Lauri Ojansivu dad65fb6c5 Verify LDAP issue 6692 through actual bind and user search methods
The latest 11.77 report still shows the undefined-index error fixed locally in 2c5cdd78a. Exercise service-account binding followed by user search with unset and configured filters, and prove failed binding cannot proceed to search. The separately reported oplog observer error is not established as the authentication cause.

Thanks to Nissulya and xet7 !

Fixes #6692,
2026-09-14 14:16:19 +03:00
Lauri Ojansivu 2c5cdd78a9 Handle unset optional LDAP user search filter
An unset LDAP_USER_SEARCH_FILTER was indexed after service-account binding, causing the reported undefined index TypeError instead of searching users. Preserve configured filters and reject invalid types explicitly.

Thanks to Nissulya and xet7 !

Fixes #6692,
2026-09-14 13:52:37 +03:00