Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 9d27f4be4d Make LDAP Test connection prove the directory answered without a service account.
ldapts opens its socket lazily. Test connection connected and then bound only
when LDAP_AUTHENTIFICATION was set, so without a service account no operation
ran and it reported success even for a host that does not resolve. Per the
maintainer decision of 2026-10-08 a test without credentials now does an
anonymous base-scope search of LDAP_BASEDN (no attributes, one entry at most)
and succeeds only when the directory answered; otherwise the directory's own
error is shown. Without a base DN it says nothing could be tested.

Thanks to xet7 !
2026-10-08 10:43:35 +03:00