Skip to content

Conversation

lukebakken
Copy link
Collaborator

@lukebakken lukebakken commented Aug 21, 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.

@lukebakken lukebakken self-assigned this Aug 21, 2025
@mergify mergify bot added the make label Aug 22, 2025
@lukebakken lukebakken force-pushed the lukebakken/ldap-validation-api branch 2 times, most recently from e6b0667 to d60588b Compare August 26, 2025 23:26
@lukebakken lukebakken force-pushed the lukebakken/ldap-validation-api branch 3 times, most recently from b9af493 to 12a3d69 Compare September 16, 2025 21:09
@lukebakken lukebakken marked this pull request as ready for review September 16, 2025 22:39
@lukebakken
Copy link
Collaborator Author

cc @sunfinite for review as well.

@lukebakken lukebakken force-pushed the lukebakken/ldap-validation-api branch from 1faf571 to 2103317 Compare September 19, 2025 14:18
@lukebakken lukebakken force-pushed the lukebakken/ldap-validation-api branch from 2103317 to 9127acb Compare September 22, 2025 14:23
@lukebakken
Copy link
Collaborator Author

@the-mikedavis @SimonUnge @sunfinite @BeichenZhang-BCZ -

API writeup. Let me know if you have questions.

See discussion rabbitmq#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
@lukebakken lukebakken force-pushed the lukebakken/ldap-validation-api branch from e8cf69d to 9a4cb9c Compare September 23, 2025 15:50
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.

2 participants