Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Sep 29, 2025

See discussion #14244

These changes will allow a user to make an HTTP API request to...

/api/ldap/validate/simple-bind

...with an appropriate JSON body, and the plugin will attempt a connection to the specified LDAP server using the provided credentials. This allows validation that a connection can be made to an LDAP server from a RabbitMQ cluster environment.


This is an automatic backport of pull request #14414 done by Mergify.

See discussion #14244

These changes will allow a user to make an HTTP API request to...

```
/api/ldap/validate/simple-bind
```

...with an appropriate JSON body, and the plugin will attempt a
connection to the specified LDAP server using the provided credentials.
This allows validation that a connection can be made to an LDAP server
from a RabbitMQ cluster environment.

* Add code and tests for `eldap:simple_bind` validation.
* Add support for testing TLS connections to OpenLDAP
* Add support for validating TLS related configuration via `/ldap/validate/simple-bind`
* Add support for various TLS options:
 * versions
 * depth
 * multiple CA cert pem data
* Fall back to system certs if neither `cacertfile` nor `cacerts_pem_data` are provided to the `simple-bind` validation.
* Add `ssl_hostname_verification` support.
* Return 422 when auth fails
* Add more informative information when connection fails
* Add more tests with invalid input
* Catch parsing errors
* Tests for edge-cases for password / user_dn
* Add test for use_ssl + use_starttls combo
* Add test for ssl_options.depth validation
* Add validation tests for server_name_indication

(cherry picked from commit 9a4cb9c)
@mergify mergify bot added the make label Sep 29, 2025
@michaelklishin michaelklishin added this to the 4.2.0 milestone Sep 29, 2025
@michaelklishin michaelklishin merged commit 0249e07 into v4.2.x Sep 29, 2025
566 of 568 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.2.x/pr-14414 branch September 29, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants